/* A Bison parser, made by GNU Bison 3.8.2.  */

/* Bison implementation for Yacc-like parsers in C

   Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
   Inc.

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.

   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */

/* C LALR(1) parser skeleton written by Richard Stallman, by
   simplifying the original so-called "semantic" parser.  */

/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
   especially those whose name start with YY_ or yy_.  They are
   private implementation details that can be changed or removed.  */

/* All symbols defined below should begin with yy or YY, to avoid
   infringing on user name space.  This should be done even for local
   variables, as they might otherwise be expanded by user macros.
   There are some unavoidable exceptions within include files to
   define necessary library symbols; they are noted "INFRINGES ON
   USER NAME SPACE" below.  */

/* Identify Bison output, and Bison version.  */
#define YYBISON 30802

/* Bison version string.  */
#define YYBISON_VERSION "3.8.2"

/* Skeleton name.  */
#define YYSKELETON_NAME "yacc.c"

/* Pure parsers.  */
#define YYPURE 0

/* Push parsers.  */
#define YYPUSH 0

/* Pull parsers.  */
#define YYPULL 1




/* First part of user prologue.  */
#line 1 "dds_idl.y"


#line 74 "IDLBison.cpp"

# ifndef YY_CAST
#  ifdef __cplusplus
#   define YY_CAST(Type, Val) static_cast<Type> (Val)
#   define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
#  else
#   define YY_CAST(Type, Val) ((Type) (Val))
#   define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
#  endif
# endif
# ifndef YY_NULLPTR
#  if defined __cplusplus
#   if 201103L <= __cplusplus
#    define YY_NULLPTR nullptr
#   else
#    define YY_NULLPTR 0
#   endif
#  else
#   define YY_NULLPTR ((void*)0)
#  endif
# endif

#include "IDLBison.hpp"
/* Symbol kind.  */
enum yysymbol_kind_t
{
  YYSYMBOL_YYEMPTY = -2,
  YYSYMBOL_YYEOF = 0,                      /* "end of file"  */
  YYSYMBOL_YYerror = 1,                    /* error  */
  YYSYMBOL_YYUNDEF = 2,                    /* "invalid token"  */
  YYSYMBOL_T_MODULE = 3,                   /* T_MODULE  */
  YYSYMBOL_T_CONST = 4,                    /* T_CONST  */
  YYSYMBOL_T_TRUE = 5,                     /* T_TRUE  */
  YYSYMBOL_T_FALSE = 6,                    /* T_FALSE  */
  YYSYMBOL_T_BOOLEAN = 7,                  /* T_BOOLEAN  */
  YYSYMBOL_T_CHAR = 8,                     /* T_CHAR  */
  YYSYMBOL_T_WCHAR = 9,                    /* T_WCHAR  */
  YYSYMBOL_T_OCTET = 10,                   /* T_OCTET  */
  YYSYMBOL_T_SHORT = 11,                   /* T_SHORT  */
  YYSYMBOL_T_LONG = 12,                    /* T_LONG  */
  YYSYMBOL_T_FLOAT = 13,                   /* T_FLOAT  */
  YYSYMBOL_T_DOUBLE = 14,                  /* T_DOUBLE  */
  YYSYMBOL_T_UNSIGNED = 15,                /* T_UNSIGNED  */
  YYSYMBOL_T_INT8 = 16,                    /* T_INT8  */
  YYSYMBOL_T_UINT8 = 17,                   /* T_UINT8  */
  YYSYMBOL_T_INT16 = 18,                   /* T_INT16  */
  YYSYMBOL_T_UINT16 = 19,                  /* T_UINT16  */
  YYSYMBOL_T_INT32 = 20,                   /* T_INT32  */
  YYSYMBOL_T_UINT32 = 21,                  /* T_UINT32  */
  YYSYMBOL_T_INT64 = 22,                   /* T_INT64  */
  YYSYMBOL_T_UINT64 = 23,                  /* T_UINT64  */
  YYSYMBOL_T_STRING = 24,                  /* T_STRING  */
  YYSYMBOL_T_WSTRING = 25,                 /* T_WSTRING  */
  YYSYMBOL_T_FIXED = 26,                   /* T_FIXED  */
  YYSYMBOL_T_MAP = 27,                     /* T_MAP  */
  YYSYMBOL_T_SEQUENCE = 28,                /* T_SEQUENCE  */
  YYSYMBOL_T_STRUCT = 29,                  /* T_STRUCT  */
  YYSYMBOL_T_ENUM = 30,                    /* T_ENUM  */
  YYSYMBOL_T_UNION = 31,                   /* T_UNION  */
  YYSYMBOL_T_SWITCH = 32,                  /* T_SWITCH  */
  YYSYMBOL_T_CASE = 33,                    /* T_CASE  */
  YYSYMBOL_T_DEFAULT = 34,                 /* T_DEFAULT  */
  YYSYMBOL_T_TYPEDEF = 35,                 /* T_TYPEDEF  */
  YYSYMBOL_T_NESTED_ANNOTATION = 36,       /* T_NESTED_ANNOTATION  */
  YYSYMBOL_T_FINAL_ANNOTATION = 37,        /* T_FINAL_ANNOTATION  */
  YYSYMBOL_T_APPENDABLE_ANNOTATION = 38,   /* T_APPENDABLE_ANNOTATION  */
  YYSYMBOL_T_MUTABLE_ANNOTATION = 39,      /* T_MUTABLE_ANNOTATION  */
  YYSYMBOL_T_BIT_BOUND_ANNOTATION = 40,    /* T_BIT_BOUND_ANNOTATION  */
  YYSYMBOL_T_KEY_ANNOTATION = 41,          /* T_KEY_ANNOTATION  */
  YYSYMBOL_T_ID_ANNOTATION = 42,           /* T_ID_ANNOTATION  */
  YYSYMBOL_T_VALUE_ANNOTATION = 43,        /* T_VALUE_ANNOTATION  */
  YYSYMBOL_T_SHARED_ANNOTATION = 44,       /* T_SHARED_ANNOTATION  */
  YYSYMBOL_T_OPTION_ANNOTATION = 45,       /* T_OPTION_ANNOTATION  */
  YYSYMBOL_T_MUST_UNDERSTAND_ANNOTATION = 46, /* T_MUST_UNDERSTAND_ANNOTATION  */
  YYSYMBOL_T_SCOPE = 47,                   /* T_SCOPE  */
  YYSYMBOL_T_PLUS = 48,                    /* T_PLUS  */
  YYSYMBOL_T_MINUS = 49,                   /* T_MINUS  */
  YYSYMBOL_T_STAR = 50,                    /* T_STAR  */
  YYSYMBOL_T_SLASH = 51,                   /* T_SLASH  */
  YYSYMBOL_T_PERCENT = 52,                 /* T_PERCENT  */
  YYSYMBOL_T_AMP = 53,                     /* T_AMP  */
  YYSYMBOL_T_PIPE = 54,                    /* T_PIPE  */
  YYSYMBOL_T_CARET = 55,                   /* T_CARET  */
  YYSYMBOL_T_TILDE = 56,                   /* T_TILDE  */
  YYSYMBOL_T_LSHIFT = 57,                  /* T_LSHIFT  */
  YYSYMBOL_T_RSHIFT = 58,                  /* T_RSHIFT  */
  YYSYMBOL_T_EQUAL = 59,                   /* T_EQUAL  */
  YYSYMBOL_T_LBRACE = 60,                  /* T_LBRACE  */
  YYSYMBOL_T_RBRACE = 61,                  /* T_RBRACE  */
  YYSYMBOL_T_LBRACKET = 62,                /* T_LBRACKET  */
  YYSYMBOL_T_RBRACKET = 63,                /* T_RBRACKET  */
  YYSYMBOL_T_LANGLE = 64,                  /* T_LANGLE  */
  YYSYMBOL_T_RANGLE = 65,                  /* T_RANGLE  */
  YYSYMBOL_T_LPAREN = 66,                  /* T_LPAREN  */
  YYSYMBOL_T_RPAREN = 67,                  /* T_RPAREN  */
  YYSYMBOL_T_COLON = 68,                   /* T_COLON  */
  YYSYMBOL_T_COMMA = 69,                   /* T_COMMA  */
  YYSYMBOL_T_SEMICOLON = 70,               /* T_SEMICOLON  */
  YYSYMBOL_T_INCLUDE = 71,                 /* T_INCLUDE  */
  YYSYMBOL_T_FILEPATH = 72,                /* T_FILEPATH  */
  YYSYMBOL_T_INTEGER_LITERAL = 73,         /* T_INTEGER_LITERAL  */
  YYSYMBOL_T_FLOAT_LITERAL = 74,           /* T_FLOAT_LITERAL  */
  YYSYMBOL_T_STRING_LITERAL = 75,          /* T_STRING_LITERAL  */
  YYSYMBOL_T_IDENTIFIER = 76,              /* T_IDENTIFIER  */
  YYSYMBOL_YYACCEPT = 77,                  /* $accept  */
  YYSYMBOL_specification = 78,             /* specification  */
  YYSYMBOL_definition_list = 79,           /* definition_list  */
  YYSYMBOL_definition = 80,                /* definition  */
  YYSYMBOL_include_dcl = 81,               /* include_dcl  */
  YYSYMBOL_module_dcl = 82,                /* module_dcl  */
  YYSYMBOL_scoped_name = 83,               /* scoped_name  */
  YYSYMBOL_const_dcl = 84,                 /* const_dcl  */
  YYSYMBOL_const_type = 85,                /* const_type  */
  YYSYMBOL_const_expr = 86,                /* const_expr  */
  YYSYMBOL_or_expr = 87,                   /* or_expr  */
  YYSYMBOL_xor_expr = 88,                  /* xor_expr  */
  YYSYMBOL_and_expr = 89,                  /* and_expr  */
  YYSYMBOL_shift_expr = 90,                /* shift_expr  */
  YYSYMBOL_add_expr = 91,                  /* add_expr  */
  YYSYMBOL_mult_expr = 92,                 /* mult_expr  */
  YYSYMBOL_unary_expr = 93,                /* unary_expr  */
  YYSYMBOL_primary_expr = 94,              /* primary_expr  */
  YYSYMBOL_literal = 95,                   /* literal  */
  YYSYMBOL_positive_int_const = 96,        /* positive_int_const  */
  YYSYMBOL_type_dcl = 97,                  /* type_dcl  */
  YYSYMBOL_type_spec = 98,                 /* type_spec  */
  YYSYMBOL_simple_type_spec = 99,          /* simple_type_spec  */
  YYSYMBOL_base_type_spec = 100,           /* base_type_spec  */
  YYSYMBOL_floating_pt_type = 101,         /* floating_pt_type  */
  YYSYMBOL_integer_type = 102,             /* integer_type  */
  YYSYMBOL_signed_int = 103,               /* signed_int  */
  YYSYMBOL_signed_short_int = 104,         /* signed_short_int  */
  YYSYMBOL_signed_long_int = 105,          /* signed_long_int  */
  YYSYMBOL_signed_longlong_int = 106,      /* signed_longlong_int  */
  YYSYMBOL_unsigned_int = 107,             /* unsigned_int  */
  YYSYMBOL_unsigned_short_int = 108,       /* unsigned_short_int  */
  YYSYMBOL_unsigned_long_int = 109,        /* unsigned_long_int  */
  YYSYMBOL_unsigned_longlong_int = 110,    /* unsigned_longlong_int  */
  YYSYMBOL_char_type = 111,                /* char_type  */
  YYSYMBOL_wide_char_type = 112,           /* wide_char_type  */
  YYSYMBOL_boolean_type = 113,             /* boolean_type  */
  YYSYMBOL_octet_type = 114,               /* octet_type  */
  YYSYMBOL_template_type_spec = 115,       /* template_type_spec  */
  YYSYMBOL_sequence_type = 116,            /* sequence_type  */
  YYSYMBOL_string_type = 117,              /* string_type  */
  YYSYMBOL_wide_string_type = 118,         /* wide_string_type  */
  YYSYMBOL_fixed_pt_type = 119,            /* fixed_pt_type  */
  YYSYMBOL_map_type = 120,                 /* map_type  */
  YYSYMBOL_constr_type_dcl = 121,          /* constr_type_dcl  */
  YYSYMBOL_struct_dcl = 122,               /* struct_dcl  */
  YYSYMBOL_struct_def = 123,               /* struct_def  */
  YYSYMBOL_type_annotation_list = 124,     /* type_annotation_list  */
  YYSYMBOL_type_annotation = 125,          /* type_annotation  */
  YYSYMBOL_member_list = 126,              /* member_list  */
  YYSYMBOL_member = 127,                   /* member  */
  YYSYMBOL_array_dims = 128,               /* array_dims  */
  YYSYMBOL_fixed_array_size = 129,         /* fixed_array_size  */
  YYSYMBOL_member_annotation_list = 130,   /* member_annotation_list  */
  YYSYMBOL_member_annotation = 131,        /* member_annotation  */
  YYSYMBOL_struct_forward_dcl = 132,       /* struct_forward_dcl  */
  YYSYMBOL_union_dcl = 133,                /* union_dcl  */
  YYSYMBOL_union_def = 134,                /* union_def  */
  YYSYMBOL_switch_type_spec = 135,         /* switch_type_spec  */
  YYSYMBOL_case_list = 136,                /* case_list  */
  YYSYMBOL_case = 137,                     /* case  */
  YYSYMBOL_case_label_list = 138,          /* case_label_list  */
  YYSYMBOL_case_label = 139,               /* case_label  */
  YYSYMBOL_union_forward_dcl = 140,        /* union_forward_dcl  */
  YYSYMBOL_enum_dcl = 141,                 /* enum_dcl  */
  YYSYMBOL_enumerator_list = 142,          /* enumerator_list  */
  YYSYMBOL_enumerator = 143,               /* enumerator  */
  YYSYMBOL_typedef_dcl = 144               /* typedef_dcl  */
};
typedef enum yysymbol_kind_t yysymbol_kind_t;




#ifdef short
# undef short
#endif

/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
   <limits.h> and (if available) <stdint.h> are included
   so that the code can choose integer types of a good width.  */

#ifndef __PTRDIFF_MAX__
# include <limits.h> /* INFRINGES ON USER NAME SPACE */
# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
#  include <stdint.h> /* INFRINGES ON USER NAME SPACE */
#  define YY_STDINT_H
# endif
#endif

/* Narrow types that promote to a signed type and that can represent a
   signed or unsigned integer of at least N bits.  In tables they can
   save space and decrease cache pressure.  Promoting to a signed type
   helps avoid bugs in integer arithmetic.  */

#ifdef __INT_LEAST8_MAX__
typedef __INT_LEAST8_TYPE__ yytype_int8;
#elif defined YY_STDINT_H
typedef int_least8_t yytype_int8;
#else
typedef signed char yytype_int8;
#endif

#ifdef __INT_LEAST16_MAX__
typedef __INT_LEAST16_TYPE__ yytype_int16;
#elif defined YY_STDINT_H
typedef int_least16_t yytype_int16;
#else
typedef short yytype_int16;
#endif

/* Work around bug in HP-UX 11.23, which defines these macros
   incorrectly for preprocessor constants.  This workaround can likely
   be removed in 2023, as HPE has promised support for HP-UX 11.23
   (aka HP-UX 11i v2) only through the end of 2022; see Table 2 of
   <https://h20195.www2.hpe.com/V2/getpdf.aspx/4AA4-7673ENW.pdf>.  */
#ifdef __hpux
# undef UINT_LEAST8_MAX
# undef UINT_LEAST16_MAX
# define UINT_LEAST8_MAX 255
# define UINT_LEAST16_MAX 65535
#endif

#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
typedef __UINT_LEAST8_TYPE__ yytype_uint8;
#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
       && UINT_LEAST8_MAX <= INT_MAX)
typedef uint_least8_t yytype_uint8;
#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
typedef unsigned char yytype_uint8;
#else
typedef short yytype_uint8;
#endif

#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
typedef __UINT_LEAST16_TYPE__ yytype_uint16;
#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
       && UINT_LEAST16_MAX <= INT_MAX)
typedef uint_least16_t yytype_uint16;
#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
typedef unsigned short yytype_uint16;
#else
typedef int yytype_uint16;
#endif

#ifndef YYPTRDIFF_T
# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
#  define YYPTRDIFF_T __PTRDIFF_TYPE__
#  define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
# elif defined PTRDIFF_MAX
#  ifndef ptrdiff_t
#   include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  endif
#  define YYPTRDIFF_T ptrdiff_t
#  define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
# else
#  define YYPTRDIFF_T long
#  define YYPTRDIFF_MAXIMUM LONG_MAX
# endif
#endif

#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
#  define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
#  define YYSIZE_T size_t
# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  define YYSIZE_T size_t
# else
#  define YYSIZE_T unsigned
# endif
#endif

#define YYSIZE_MAXIMUM                                  \
  YY_CAST (YYPTRDIFF_T,                                 \
           (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1)  \
            ? YYPTRDIFF_MAXIMUM                         \
            : YY_CAST (YYSIZE_T, -1)))

#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))


/* Stored state numbers (used for stacks). */
typedef yytype_int16 yy_state_t;

/* State numbers in computations.  */
typedef int yy_state_fast_t;

#ifndef YY_
# if defined YYENABLE_NLS && YYENABLE_NLS
#  if ENABLE_NLS
#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
#   define YY_(Msgid) dgettext ("bison-runtime", Msgid)
#  endif
# endif
# ifndef YY_
#  define YY_(Msgid) Msgid
# endif
#endif


#ifndef YY_ATTRIBUTE_PURE
# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
#  define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
# else
#  define YY_ATTRIBUTE_PURE
# endif
#endif

#ifndef YY_ATTRIBUTE_UNUSED
# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
#  define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
# else
#  define YY_ATTRIBUTE_UNUSED
# endif
#endif

/* Suppress unused-variable warnings by "using" E.  */
#if ! defined lint || defined __GNUC__
# define YY_USE(E) ((void) (E))
#else
# define YY_USE(E) /* empty */
#endif

/* Suppress an incorrect diagnostic about yylval being uninitialized.  */
#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
# if __GNUC__ * 100 + __GNUC_MINOR__ < 407
#  define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN                           \
    _Pragma ("GCC diagnostic push")                                     \
    _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
# else
#  define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN                           \
    _Pragma ("GCC diagnostic push")                                     \
    _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")              \
    _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
# endif
# define YY_IGNORE_MAYBE_UNINITIALIZED_END      \
    _Pragma ("GCC diagnostic pop")
#else
# define YY_INITIAL_VALUE(Value) Value
#endif
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
#endif
#ifndef YY_INITIAL_VALUE
# define YY_INITIAL_VALUE(Value) /* Nothing. */
#endif

#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
# define YY_IGNORE_USELESS_CAST_BEGIN                          \
    _Pragma ("GCC diagnostic push")                            \
    _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
# define YY_IGNORE_USELESS_CAST_END            \
    _Pragma ("GCC diagnostic pop")
#endif
#ifndef YY_IGNORE_USELESS_CAST_BEGIN
# define YY_IGNORE_USELESS_CAST_BEGIN
# define YY_IGNORE_USELESS_CAST_END
#endif


#define YY_ASSERT(E) ((void) (0 && (E)))

#if !defined yyoverflow

/* The parser invokes alloca or malloc; define the necessary symbols.  */

# ifdef YYSTACK_USE_ALLOCA
#  if YYSTACK_USE_ALLOCA
#   ifdef __GNUC__
#    define YYSTACK_ALLOC __builtin_alloca
#   elif defined __BUILTIN_VA_ARG_INCR
#    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
#   elif defined _AIX
#    define YYSTACK_ALLOC __alloca
#   elif defined _MSC_VER
#    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
#    define alloca _alloca
#   else
#    define YYSTACK_ALLOC alloca
#    if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
      /* Use EXIT_SUCCESS as a witness for stdlib.h.  */
#     ifndef EXIT_SUCCESS
#      define EXIT_SUCCESS 0
#     endif
#    endif
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's 'empty if-body' warning.  */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
#  ifndef YYSTACK_ALLOC_MAXIMUM
    /* The OS might guarantee only one guard page at the bottom of the stack,
       and a page size can be as small as 4096 bytes.  So we cannot safely
       invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
       to allow for a few compiler-allocated temporary stack slots.  */
#   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
#  endif
# else
#  define YYSTACK_ALLOC YYMALLOC
#  define YYSTACK_FREE YYFREE
#  ifndef YYSTACK_ALLOC_MAXIMUM
#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
#  endif
#  if (defined __cplusplus && ! defined EXIT_SUCCESS \
       && ! ((defined YYMALLOC || defined malloc) \
             && (defined YYFREE || defined free)))
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   ifndef EXIT_SUCCESS
#    define EXIT_SUCCESS 0
#   endif
#  endif
#  ifndef YYMALLOC
#   define YYMALLOC malloc
#   if ! defined malloc && ! defined EXIT_SUCCESS
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
#  ifndef YYFREE
#   define YYFREE free
#   if ! defined free && ! defined EXIT_SUCCESS
void free (void *); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
# endif
#endif /* !defined yyoverflow */

#if (! defined yyoverflow \
     && (! defined __cplusplus \
         || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
  yy_state_t yyss_alloc;
  YYSTYPE yyvs_alloc;
};

/* The size of the maximum gap between one aligned stack and the next.  */
# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)

/* The size of an array large to enough to hold all stacks, each with
   N elements.  */
# define YYSTACK_BYTES(N) \
     ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

# define YYCOPY_NEEDED 1

/* Relocate STACK from its old location to the new one.  The
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   elements in the stack, and YYPTR gives the new location of the
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  */
# define YYSTACK_RELOCATE(Stack_alloc, Stack)                           \
    do                                                                  \
      {                                                                 \
        YYPTRDIFF_T yynewbytes;                                         \
        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
        Stack = &yyptr->Stack_alloc;                                    \
        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
      }                                                                 \
    while (0)

#endif

#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from SRC to DST.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
#  if defined __GNUC__ && 1 < __GNUC__
#   define YYCOPY(Dst, Src, Count) \
      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  else
#   define YYCOPY(Dst, Src, Count)              \
      do                                        \
        {                                       \
          YYPTRDIFF_T yyi;                      \
          for (yyi = 0; yyi < (Count); yyi++)   \
            (Dst)[yyi] = (Src)[yyi];            \
        }                                       \
      while (0)
#  endif
# endif
#endif /* !YYCOPY_NEEDED */

/* YYFINAL -- State number of the termination state.  */
#define YYFINAL  95
/* YYLAST -- Last index in YYTABLE.  */
#define YYLAST   719

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  77
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  68
/* YYNRULES -- Number of rules.  */
#define YYNRULES  171
/* YYNSTATES -- Number of states.  */
#define YYNSTATES  295

/* YYMAXUTOK -- Last valid token kind.  */
#define YYMAXUTOK   331


/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
   as returned by yylex, with out-of-bounds checking.  */
#define YYTRANSLATE(YYX)                                \
  (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
   ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
   : YYSYMBOL_YYUNDEF)

/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
   as returned by yylex.  */
static const yytype_int8 yytranslate[] =
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
       5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
      25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
      35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
      45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
      55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
      65,    66,    67,    68,    69,    70,    71,    72,    73,    74,
      75,    76
};

#if YYDEBUG
/* YYRLINE[YYN] -- Source line where rule number YYN was defined.  */
static const yytype_int16 yyrline[] =
{
       0,   220,   220,   222,   223,   225,   226,   227,   228,   230,
     232,   234,   235,   236,   238,   240,   241,   242,   243,   244,
     245,   246,   247,   248,   250,   252,   253,   255,   256,   258,
     259,   261,   262,   263,   265,   266,   267,   269,   270,   271,
     272,   274,   275,   276,   277,   279,   280,   281,   283,   284,
     285,   286,   287,   289,   291,   292,   294,   295,   297,   298,
     300,   301,   302,   303,   304,   305,   307,   308,   309,   311,
     312,   314,   315,   316,   318,   319,   321,   322,   324,   325,
     327,   328,   329,   331,   332,   334,   335,   337,   338,   340,
     341,   343,   345,   347,   348,   350,   351,   352,   353,   354,
     356,   357,   359,   360,   362,   363,   365,   367,   368,   370,
     371,   372,   374,   375,   377,   378,   379,   380,   382,   383,
     385,   386,   387,   388,   389,   391,   392,   394,   395,   396,
     397,   398,   400,   401,   403,   405,   406,   408,   409,   410,
     411,   412,   413,   415,   417,   418,   420,   421,   423,   424,
     425,   426,   427,   428,   429,   430,   432,   433,   435,   437,
     438,   440,   441,   443,   445,   446,   448,   449,   451,   452,
     454,   455
};
#endif

/** Accessing symbol of state STATE.  */
#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])

#if YYDEBUG || 0
/* The user-facing name of the symbol whose (internal) number is
   YYSYMBOL.  No bounds checking.  */
static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;

/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
   First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
static const char *const yytname[] =
{
  "\"end of file\"", "error", "\"invalid token\"", "T_MODULE", "T_CONST",
  "T_TRUE", "T_FALSE", "T_BOOLEAN", "T_CHAR", "T_WCHAR", "T_OCTET",
  "T_SHORT", "T_LONG", "T_FLOAT", "T_DOUBLE", "T_UNSIGNED", "T_INT8",
  "T_UINT8", "T_INT16", "T_UINT16", "T_INT32", "T_UINT32", "T_INT64",
  "T_UINT64", "T_STRING", "T_WSTRING", "T_FIXED", "T_MAP", "T_SEQUENCE",
  "T_STRUCT", "T_ENUM", "T_UNION", "T_SWITCH", "T_CASE", "T_DEFAULT",
  "T_TYPEDEF", "T_NESTED_ANNOTATION", "T_FINAL_ANNOTATION",
  "T_APPENDABLE_ANNOTATION", "T_MUTABLE_ANNOTATION",
  "T_BIT_BOUND_ANNOTATION", "T_KEY_ANNOTATION", "T_ID_ANNOTATION",
  "T_VALUE_ANNOTATION", "T_SHARED_ANNOTATION", "T_OPTION_ANNOTATION",
  "T_MUST_UNDERSTAND_ANNOTATION", "T_SCOPE", "T_PLUS", "T_MINUS", "T_STAR",
  "T_SLASH", "T_PERCENT", "T_AMP", "T_PIPE", "T_CARET", "T_TILDE",
  "T_LSHIFT", "T_RSHIFT", "T_EQUAL", "T_LBRACE", "T_RBRACE", "T_LBRACKET",
  "T_RBRACKET", "T_LANGLE", "T_RANGLE", "T_LPAREN", "T_RPAREN", "T_COLON",
  "T_COMMA", "T_SEMICOLON", "T_INCLUDE", "T_FILEPATH", "T_INTEGER_LITERAL",
  "T_FLOAT_LITERAL", "T_STRING_LITERAL", "T_IDENTIFIER", "$accept",
  "specification", "definition_list", "definition", "include_dcl",
  "module_dcl", "scoped_name", "const_dcl", "const_type", "const_expr",
  "or_expr", "xor_expr", "and_expr", "shift_expr", "add_expr", "mult_expr",
  "unary_expr", "primary_expr", "literal", "positive_int_const",
  "type_dcl", "type_spec", "simple_type_spec", "base_type_spec",
  "floating_pt_type", "integer_type", "signed_int", "signed_short_int",
  "signed_long_int", "signed_longlong_int", "unsigned_int",
  "unsigned_short_int", "unsigned_long_int", "unsigned_longlong_int",
  "char_type", "wide_char_type", "boolean_type", "octet_type",
  "template_type_spec", "sequence_type", "string_type", "wide_string_type",
  "fixed_pt_type", "map_type", "constr_type_dcl", "struct_dcl",
  "struct_def", "type_annotation_list", "type_annotation", "member_list",
  "member", "array_dims", "fixed_array_size", "member_annotation_list",
  "member_annotation", "struct_forward_dcl", "union_dcl", "union_def",
  "switch_type_spec", "case_list", "case", "case_label_list", "case_label",
  "union_forward_dcl", "enum_dcl", "enumerator_list", "enumerator",
  "typedef_dcl", YY_NULLPTR
};

static const char *
yysymbol_name (yysymbol_kind_t yysymbol)
{
  return yytname[yysymbol];
}
#endif

#define YYPACT_NINF (-262)

#define yypact_value_is_default(Yyn) \
  ((Yyn) == YYPACT_NINF)

#define YYTABLE_NINF (-1)

#define yytable_value_is_error(Yyn) \
  0

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
static const yytype_int16 yypact[] =
{
     350,   -60,   643,   -49,    -7,    28,    27,  -262,  -262,  -262,
    -262,    43,    58,   158,   350,  -262,  -262,   100,   102,   106,
    -262,  -262,  -262,   188,  -262,  -262,  -262,  -262,  -262,  -262,
    -262,   104,  -262,  -262,  -262,  -262,  -262,    52,  -262,  -262,
      21,  -262,  -262,  -262,  -262,  -262,  -262,  -262,  -262,   113,
     114,   103,  -262,   133,   105,  -262,  -262,  -262,  -262,  -262,
    -262,  -262,  -262,  -262,  -262,  -262,  -262,  -262,  -262,  -262,
    -262,    37,   125,   152,   128,   135,   137,   133,   126,  -262,
    -262,  -262,  -262,  -262,  -262,  -262,  -262,  -262,  -262,  -262,
    -262,  -262,  -262,    14,  -262,  -262,  -262,  -262,  -262,  -262,
     127,   129,   130,  -262,   350,  -262,  -262,  -262,   195,    14,
      14,  -262,   132,   156,   602,   -17,   -18,   155,    14,    27,
      27,   161,  -262,  -262,    18,    18,    18,    14,  -262,  -262,
    -262,   133,  -262,   176,   174,   178,    25,    30,    98,  -262,
    -262,  -262,   166,    46,   183,   202,   210,  -262,   179,   187,
    -262,    14,  -262,   190,   191,  -262,  -262,  -262,   -19,   322,
    -262,   602,  -262,   -32,   192,  -262,    47,  -262,   124,   184,
     185,   -47,    14,   161,  -262,  -262,  -262,  -262,   193,    14,
      14,    14,    14,    14,    14,    14,    14,    14,    14,  -262,
     602,   -17,   -18,   196,  -262,  -262,  -262,  -262,    14,    14,
     189,    45,  -262,  -262,   197,  -262,   602,    14,  -262,   -18,
     249,   175,   133,  -262,  -262,  -262,   198,    14,    27,  -262,
      14,   200,  -262,  -262,   174,   178,    25,    30,    30,    98,
      98,  -262,  -262,  -262,   392,    13,    50,   124,   199,   201,
    -262,  -262,    63,    64,   462,   205,  -262,   133,  -262,  -262,
    -262,   204,   209,    16,   211,  -262,  -262,   602,  -262,   208,
    -262,  -262,  -262,  -262,    67,  -262,   203,    94,  -262,  -262,
      14,  -262,   532,   207,  -262,  -262,    14,   212,    34,  -262,
     281,  -262,   217,  -262,    94,   215,  -262,  -262,  -262,   602,
    -262,  -262,    38,  -262,  -262
};

/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
   Performed when YYTABLE does not specify something else to do.  Zero
   means the default is an error.  */
static const yytype_uint8 yydefact[] =
{
       0,     0,     0,     0,     0,     0,     0,   123,   120,   121,
     122,     0,     0,     0,     2,     3,     8,     0,     0,     0,
      54,   109,   112,     0,   118,   113,   110,   144,   145,   111,
      55,     0,    92,    89,    91,    93,    74,    76,    66,    67,
       0,    90,    94,    75,    84,    77,    86,    79,    88,   103,
     105,     0,    11,    23,     0,    16,    15,    69,    71,    72,
      73,    70,    80,    81,    82,    17,    18,    19,    20,    21,
      22,   143,     0,   163,     0,     0,     0,    59,     0,    56,
      58,    61,    60,    62,    63,    64,    65,    57,    95,    96,
      97,    98,    99,     0,     9,     1,     4,     5,     6,     7,
       0,     0,     0,   119,     0,    78,    68,    83,    85,     0,
       0,    12,     0,     0,     0,     0,     0,     0,     0,     0,
       0,   170,    51,    52,     0,     0,     0,     0,    48,    49,
      50,    45,    53,    24,    25,    27,    29,    31,    34,    37,
      44,    46,     0,     0,     0,     0,     0,    87,     0,     0,
      13,     0,   139,     0,     0,   140,   142,   141,     0,     0,
     125,     0,   135,     0,     0,   168,     0,   166,     0,     0,
       0,     0,     0,   171,   132,    42,    41,    43,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   124,
       0,     0,     0,     0,    10,   102,   104,    14,     0,     0,
       0,     0,   115,   126,     0,   136,     0,     0,   165,     0,
      76,     0,   151,   148,   149,   150,     0,     0,     0,   101,
       0,     0,   133,    47,    26,    28,    30,    33,    32,    35,
      36,    38,    39,    40,     0,     0,     0,     0,     0,     0,
     131,   130,     0,     0,     0,     0,   167,   155,   152,   153,
     154,     0,     0,     0,     0,   134,   114,     0,   164,     0,
     137,   138,   129,   128,     0,   117,     0,     0,   106,   108,
       0,   100,     0,     0,   127,   169,     0,     0,     0,   156,
       0,   159,     0,   116,     0,     0,   162,   147,   157,   158,
     160,   107,     0,   161,   146
};

/* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
    -262,  -262,   165,    -8,  -262,  -262,    -2,  -262,  -262,  -122,
    -262,   107,    97,   131,   -27,   -10,   -35,    36,  -262,   -97,
    -262,     2,  -262,  -262,   282,    -1,  -262,  -262,  -262,  -262,
    -262,  -262,  -262,  -262,     0,   283,     1,   308,  -262,  -262,
     309,   311,  -262,  -262,  -262,  -262,  -262,  -262,   293,  -180,
    -148,  -187,  -166,  -262,   157,  -262,  -262,  -262,    80,    35,
    -261,  -262,    40,  -262,  -262,   159,   112,  -262
};

/* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
{
       0,    13,    14,    15,    16,    17,   131,    18,    54,   132,
     133,   134,   135,   136,   137,   138,   139,   140,   141,   142,
      19,   158,    79,    80,    81,    82,    57,    58,    59,    60,
      61,    62,    63,    64,    83,    84,    85,    86,    87,    88,
      89,    90,    91,    92,    20,    21,    22,    23,    24,   159,
     160,   173,   174,   161,   162,    25,    26,    27,   216,   278,
     279,   280,   281,    28,    29,   166,   167,    30
};

/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM.  If
   positive, shift that token.  If negative, reduce the rule whose
   number is the opposite.  If YYTABLE_NINF, syntax error.  */
static const yytype_int16 yytable[] =
{
      53,    56,    65,    67,    77,   178,    96,   222,    78,   200,
     234,   203,   148,   149,   242,   112,    31,   288,   219,   122,
     123,   169,   220,   122,   123,   164,   244,    71,   206,   197,
      51,   288,   107,   108,    32,    33,    34,    35,    36,    37,
      38,    39,    40,    41,    42,    43,    44,    45,    46,    47,
      48,    49,    50,    74,    75,    76,   264,   201,   165,    52,
     112,    51,   124,   125,   105,    51,   106,   276,   277,    72,
     126,   276,   277,   257,    51,   221,   222,   272,   184,   185,
     127,   269,   182,   183,   127,   270,   203,   128,   129,   130,
      52,   128,   129,   130,    52,   287,   203,   114,   222,   294,
     289,   238,   239,    52,    73,   115,   190,   172,   208,    93,
     245,   258,    77,   163,   191,   241,   209,    77,    77,   209,
     252,   170,   171,   254,   203,   172,   172,   276,   277,   172,
      94,    32,    33,   262,   263,    36,   210,   274,    96,    40,
      41,   203,    43,    44,    45,    46,    47,    48,   186,   187,
     188,   231,   232,   233,   285,   227,   228,    77,    95,    77,
     175,   176,   177,   204,   104,   211,   212,   213,   214,   215,
      97,    51,    98,   282,   229,   230,    99,   109,   110,   111,
     112,   113,    32,    33,   117,   116,    36,   210,    77,   235,
      40,    41,   118,    43,    44,    45,    46,    47,    48,   119,
      52,   120,   121,   143,    77,   144,   145,   147,   150,   247,
     248,   249,   250,     1,     2,   151,    77,   100,   101,   102,
     253,   168,    51,   172,     7,     8,     9,    10,    11,   180,
     179,   181,    77,   189,   193,   212,   213,   214,   215,     3,
       4,     5,    77,   192,   195,     6,     7,     8,     9,    10,
      11,    52,   196,   217,   218,    77,   198,   199,   207,   240,
     223,   105,   237,   255,   267,   251,   260,   284,   261,   146,
      77,   194,   266,   243,   268,   273,   271,   225,    77,   275,
     286,    12,   291,   293,    55,    66,   224,    77,    32,    33,
      34,    35,    36,    37,    38,    39,    40,    41,    42,    43,
      44,    45,    46,    47,    48,    49,    50,    74,    75,    76,
      68,    69,   226,    70,   276,   277,   103,   259,   205,   292,
     290,   246,   152,   153,   154,   155,   156,   157,    51,    32,
      33,    34,    35,    36,    37,    38,    39,    40,    41,    42,
      43,    44,    45,    46,    47,    48,    49,    50,    74,    75,
      76,   236,     0,     1,     2,     0,     0,    52,     0,     0,
       0,     0,     0,   152,   153,   154,   155,   156,   157,    51,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     3,
       4,     5,     0,   202,     0,     6,     7,     8,     9,    10,
      11,     0,     0,     0,     0,     0,     0,     0,    52,    32,
      33,    34,    35,    36,    37,    38,    39,    40,    41,    42,
      43,    44,    45,    46,    47,    48,    49,    50,    74,    75,
      76,    12,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   152,   153,   154,   155,   156,   157,    51,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   256,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,    52,    32,
      33,    34,    35,    36,    37,    38,    39,    40,    41,    42,
      43,    44,    45,    46,    47,    48,    49,    50,    74,    75,
      76,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   152,   153,   154,   155,   156,   157,    51,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   265,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,    52,    32,
      33,    34,    35,    36,    37,    38,    39,    40,    41,    42,
      43,    44,    45,    46,    47,    48,    49,    50,    74,    75,
      76,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   152,   153,   154,   155,   156,   157,    51,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   283,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,    52,    32,
      33,    34,    35,    36,    37,    38,    39,    40,    41,    42,
      43,    44,    45,    46,    47,    48,    49,    50,    74,    75,
      76,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   152,   153,   154,   155,   156,   157,    51,
      32,    33,    34,    35,    36,    37,    38,    39,    40,    41,
      42,    43,    44,    45,    46,    47,    48,    49,    50,     0,
       0,     0,     0,     0,     0,     0,     0,     0,    52,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
      51,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,    52
};

static const yytype_int16 yycheck[] =
{
       2,     2,     2,     2,     6,   127,    14,   173,     6,    28,
     190,   159,   109,   110,   201,    47,    76,   278,    65,     5,
       6,   118,    69,     5,     6,    43,   206,    76,    60,   151,
      47,   292,    11,    12,     7,     8,     9,    10,    11,    12,
      13,    14,    15,    16,    17,    18,    19,    20,    21,    22,
      23,    24,    25,    26,    27,    28,   243,    76,    76,    76,
      47,    47,    48,    49,    12,    47,    14,    33,    34,    76,
      56,    33,    34,    60,    47,   172,   242,   257,    48,    49,
      66,    65,    57,    58,    66,    69,   234,    73,    74,    75,
      76,    73,    74,    75,    76,    61,   244,    60,   264,    61,
     280,   198,   199,    76,    76,    68,    60,    62,    61,    66,
     207,    61,   114,   115,    68,    70,    69,   119,   120,    69,
     217,   119,   120,   220,   272,    62,    62,    33,    34,    62,
      72,     7,     8,    70,    70,    11,    12,    70,   146,    15,
      16,   289,    18,    19,    20,    21,    22,    23,    50,    51,
      52,   186,   187,   188,   276,   182,   183,   159,     0,   161,
     124,   125,   126,   161,    60,    41,   168,   168,   168,   168,
      70,    47,    70,   270,   184,   185,    70,    64,    64,    76,
      47,    76,     7,     8,    32,    60,    11,    12,   190,   191,
      15,    16,    64,    18,    19,    20,    21,    22,    23,    64,
      76,    64,    76,    76,   206,    76,    76,    12,    76,   211,
     211,   211,   211,     3,     4,    59,   218,    29,    30,    31,
     218,    66,    47,    62,    36,    37,    38,    39,    40,    55,
      54,    53,   234,    67,    32,   237,   237,   237,   237,    29,
      30,    31,   244,    60,    65,    35,    36,    37,    38,    39,
      40,    76,    65,    69,    69,   257,    66,    66,    66,    70,
      67,    12,    66,    63,    60,    67,    67,    60,    67,   104,
     272,    61,    67,    76,    65,    67,    65,   180,   280,    76,
      68,    71,    65,    68,     2,     2,   179,   289,     7,     8,
       9,    10,    11,    12,    13,    14,    15,    16,    17,    18,
      19,    20,    21,    22,    23,    24,    25,    26,    27,    28,
       2,     2,   181,     2,    33,    34,    23,   237,   161,   284,
     280,   209,    41,    42,    43,    44,    45,    46,    47,     7,
       8,     9,    10,    11,    12,    13,    14,    15,    16,    17,
      18,    19,    20,    21,    22,    23,    24,    25,    26,    27,
      28,   192,    -1,     3,     4,    -1,    -1,    76,    -1,    -1,
      -1,    -1,    -1,    41,    42,    43,    44,    45,    46,    47,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    29,
      30,    31,    -1,    61,    -1,    35,    36,    37,    38,    39,
      40,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    76,     7,
       8,     9,    10,    11,    12,    13,    14,    15,    16,    17,
      18,    19,    20,    21,    22,    23,    24,    25,    26,    27,
      28,    71,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    41,    42,    43,    44,    45,    46,    47,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    61,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    76,     7,
       8,     9,    10,    11,    12,    13,    14,    15,    16,    17,
      18,    19,    20,    21,    22,    23,    24,    25,    26,    27,
      28,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    41,    42,    43,    44,    45,    46,    47,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    61,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    76,     7,
       8,     9,    10,    11,    12,    13,    14,    15,    16,    17,
      18,    19,    20,    21,    22,    23,    24,    25,    26,    27,
      28,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    41,    42,    43,    44,    45,    46,    47,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    61,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    76,     7,
       8,     9,    10,    11,    12,    13,    14,    15,    16,    17,
      18,    19,    20,    21,    22,    23,    24,    25,    26,    27,
      28,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    41,    42,    43,    44,    45,    46,    47,
       7,     8,     9,    10,    11,    12,    13,    14,    15,    16,
      17,    18,    19,    20,    21,    22,    23,    24,    25,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    76,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      47,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    76
};

/* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of
   state STATE-NUM.  */
static const yytype_uint8 yystos[] =
{
       0,     3,     4,    29,    30,    31,    35,    36,    37,    38,
      39,    40,    71,    78,    79,    80,    81,    82,    84,    97,
     121,   122,   123,   124,   125,   132,   133,   134,   140,   141,
     144,    76,     7,     8,     9,    10,    11,    12,    13,    14,
      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
      25,    47,    76,    83,    85,   101,   102,   103,   104,   105,
     106,   107,   108,   109,   110,   111,   112,   113,   114,   117,
     118,    76,    76,    76,    26,    27,    28,    83,    98,    99,
     100,   101,   102,   111,   112,   113,   114,   115,   116,   117,
     118,   119,   120,    66,    72,     0,    80,    70,    70,    70,
      29,    30,    31,   125,    60,    12,    14,    11,    12,    64,
      64,    76,    47,    76,    60,    68,    60,    32,    64,    64,
      64,    76,     5,     6,    48,    49,    56,    66,    73,    74,
      75,    83,    86,    87,    88,    89,    90,    91,    92,    93,
      94,    95,    96,    76,    76,    76,    79,    12,    96,    96,
      76,    59,    41,    42,    43,    44,    45,    46,    98,   126,
     127,   130,   131,    83,    43,    76,   142,   143,    66,    96,
      98,    98,    62,   128,   129,    94,    94,    94,    86,    54,
      55,    53,    57,    58,    48,    49,    50,    51,    52,    67,
      60,    68,    60,    32,    61,    65,    65,    86,    66,    66,
      28,    76,    61,   127,    98,   131,    60,    66,    61,    69,
      12,    41,    83,   102,   111,   113,   135,    69,    69,    65,
      69,    96,   129,    67,    88,    89,    90,    91,    91,    92,
      92,    93,    93,    93,   126,    83,   142,    66,    96,    96,
      70,    70,   128,    76,   126,    96,   143,    83,   102,   111,
     113,    67,    96,    98,    96,    63,    61,    60,    61,   135,
      67,    67,    70,    70,   128,    61,    67,    60,    65,    65,
      69,    65,   126,    67,    70,    76,    33,    34,   136,   137,
     138,   139,    96,    61,    60,    86,    68,    61,   137,   126,
     139,    65,   136,    68,    61
};

/* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM.  */
static const yytype_uint8 yyr1[] =
{
       0,    77,    78,    79,    79,    80,    80,    80,    80,    81,
      82,    83,    83,    83,    84,    85,    85,    85,    85,    85,
      85,    85,    85,    85,    86,    87,    87,    88,    88,    89,
      89,    90,    90,    90,    91,    91,    91,    92,    92,    92,
      92,    93,    93,    93,    93,    94,    94,    94,    95,    95,
      95,    95,    95,    96,    97,    97,    98,    98,    99,    99,
     100,   100,   100,   100,   100,   100,   101,   101,   101,   102,
     102,   103,   103,   103,   104,   104,   105,   105,   106,   106,
     107,   107,   107,   108,   108,   109,   109,   110,   110,   111,
     111,   112,   113,   114,   114,   115,   115,   115,   115,   115,
     116,   116,   117,   117,   118,   118,   119,   120,   120,   121,
     121,   121,   122,   122,   123,   123,   123,   123,   124,   124,
     125,   125,   125,   125,   125,   126,   126,   127,   127,   127,
     127,   127,   128,   128,   129,   130,   130,   131,   131,   131,
     131,   131,   131,   132,   133,   133,   134,   134,   135,   135,
     135,   135,   135,   135,   135,   135,   136,   136,   137,   138,
     138,   139,   139,   140,   141,   141,   142,   142,   143,   143,
     144,   144
};

/* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM.  */
static const yytype_int8 yyr2[] =
{
       0,     2,     1,     1,     2,     2,     2,     2,     1,     2,
       5,     1,     2,     3,     5,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     3,     1,     3,     1,
       3,     1,     3,     3,     1,     3,     3,     1,     3,     3,
       3,     2,     2,     2,     1,     1,     1,     3,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     2,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     2,     1,
       1,     1,     1,     2,     1,     2,     1,     3,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       6,     4,     4,     1,     4,     1,     6,     8,     6,     1,
       1,     1,     1,     1,     6,     5,     8,     7,     1,     2,
       1,     1,     1,     1,     4,     1,     2,     5,     4,     4,
       3,     3,     1,     2,     3,     1,     2,     4,     4,     1,
       1,     1,     1,     2,     1,     1,    10,     9,     1,     1,
       1,     1,     2,     2,     2,     2,     1,     2,     2,     1,
       2,     3,     2,     2,     6,     5,     1,     3,     1,     5,
       3,     4
};


enum { YYENOMEM = -2 };

#define yyerrok         (yyerrstatus = 0)
#define yyclearin       (yychar = YYEMPTY)

#define YYACCEPT        goto yyacceptlab
#define YYABORT         goto yyabortlab
#define YYERROR         goto yyerrorlab
#define YYNOMEM         goto yyexhaustedlab


#define YYRECOVERING()  (!!yyerrstatus)

#define YYBACKUP(Token, Value)                                    \
  do                                                              \
    if (yychar == YYEMPTY)                                        \
      {                                                           \
        yychar = (Token);                                         \
        yylval = (Value);                                         \
        YYPOPSTACK (yylen);                                       \
        yystate = *yyssp;                                         \
        goto yybackup;                                            \
      }                                                           \
    else                                                          \
      {                                                           \
        yyerror (YY_("syntax error: cannot back up")); \
        YYERROR;                                                  \
      }                                                           \
  while (0)

/* Backward compatibility with an undocumented macro.
   Use YYerror or YYUNDEF. */
#define YYERRCODE YYUNDEF


/* Enable debugging if requested.  */
#if YYDEBUG

# ifndef YYFPRINTF
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
#  define YYFPRINTF fprintf
# endif

# define YYDPRINTF(Args)                        \
do {                                            \
  if (yydebug)                                  \
    YYFPRINTF Args;                             \
} while (0)




# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)                    \
do {                                                                      \
  if (yydebug)                                                            \
    {                                                                     \
      YYFPRINTF (stderr, "%s ", Title);                                   \
      yy_symbol_print (stderr,                                            \
                  Kind, Value); \
      YYFPRINTF (stderr, "\n");                                           \
    }                                                                     \
} while (0)


/*-----------------------------------.
| Print this symbol's value on YYO.  |
`-----------------------------------*/

static void
yy_symbol_value_print (FILE *yyo,
                       yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
{
  FILE *yyoutput = yyo;
  YY_USE (yyoutput);
  if (!yyvaluep)
    return;
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  YY_USE (yykind);
  YY_IGNORE_MAYBE_UNINITIALIZED_END
}


/*---------------------------.
| Print this symbol on YYO.  |
`---------------------------*/

static void
yy_symbol_print (FILE *yyo,
                 yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
{
  YYFPRINTF (yyo, "%s %s (",
             yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));

  yy_symbol_value_print (yyo, yykind, yyvaluep);
  YYFPRINTF (yyo, ")");
}

/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included).                                                   |
`------------------------------------------------------------------*/

static void
yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
{
  YYFPRINTF (stderr, "Stack now");
  for (; yybottom <= yytop; yybottom++)
    {
      int yybot = *yybottom;
      YYFPRINTF (stderr, " %d", yybot);
    }
  YYFPRINTF (stderr, "\n");
}

# define YY_STACK_PRINT(Bottom, Top)                            \
do {                                                            \
  if (yydebug)                                                  \
    yy_stack_print ((Bottom), (Top));                           \
} while (0)


/*------------------------------------------------.
| Report that the YYRULE is going to be reduced.  |
`------------------------------------------------*/

static void
yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp,
                 int yyrule)
{
  int yylno = yyrline[yyrule];
  int yynrhs = yyr2[yyrule];
  int yyi;
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
             yyrule - 1, yylno);
  /* The symbols being reduced.  */
  for (yyi = 0; yyi < yynrhs; yyi++)
    {
      YYFPRINTF (stderr, "   $%d = ", yyi + 1);
      yy_symbol_print (stderr,
                       YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]),
                       &yyvsp[(yyi + 1) - (yynrhs)]);
      YYFPRINTF (stderr, "\n");
    }
}

# define YY_REDUCE_PRINT(Rule)          \
do {                                    \
  if (yydebug)                          \
    yy_reduce_print (yyssp, yyvsp, Rule); \
} while (0)

/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args) ((void) 0)
# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */


/* YYINITDEPTH -- initial size of the parser's stacks.  */
#ifndef YYINITDEPTH
# define YYINITDEPTH 200
#endif

/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
   if the built-in stack extension method is used).

   Do not make this value too large; the results are undefined if
   YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
   evaluated with infinite-precision integer arithmetic.  */

#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif






/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/

static void
yydestruct (const char *yymsg,
            yysymbol_kind_t yykind, YYSTYPE *yyvaluep)
{
  YY_USE (yyvaluep);
  if (!yymsg)
    yymsg = "Deleting";
  YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);

  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  YY_USE (yykind);
  YY_IGNORE_MAYBE_UNINITIALIZED_END
}


/* Lookahead token kind.  */
int yychar;

/* The semantic value of the lookahead symbol.  */
YYSTYPE yylval;
/* Number of syntax errors so far.  */
int yynerrs;




/*----------.
| yyparse.  |
`----------*/

int
yyparse (void)
{
    yy_state_fast_t yystate = 0;
    /* Number of tokens to shift before error messages enabled.  */
    int yyerrstatus = 0;

    /* Refer to the stacks through separate pointers, to allow yyoverflow
       to reallocate them elsewhere.  */

    /* Their size.  */
    YYPTRDIFF_T yystacksize = YYINITDEPTH;

    /* The state stack: array, bottom, top.  */
    yy_state_t yyssa[YYINITDEPTH];
    yy_state_t *yyss = yyssa;
    yy_state_t *yyssp = yyss;

    /* The semantic value stack: array, bottom, top.  */
    YYSTYPE yyvsa[YYINITDEPTH];
    YYSTYPE *yyvs = yyvsa;
    YYSTYPE *yyvsp = yyvs;

  int yyn;
  /* The return value of yyparse.  */
  int yyresult;
  /* Lookahead symbol kind.  */
  yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
  /* The variables used to return semantic value and location from the
     action routines.  */
  YYSTYPE yyval;



#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))

  /* The number of symbols on the RHS of the reduced rule.
     Keep to zero when no symbol should be popped.  */
  int yylen = 0;

  YYDPRINTF ((stderr, "Starting parse\n"));

  yychar = YYEMPTY; /* Cause a token to be read.  */

  goto yysetstate;


/*------------------------------------------------------------.
| yynewstate -- push a new state, which is found in yystate.  |
`------------------------------------------------------------*/
yynewstate:
  /* In all cases, when you get here, the value and location stacks
     have just been pushed.  So pushing a state here evens the stacks.  */
  yyssp++;


/*--------------------------------------------------------------------.
| yysetstate -- set current state (the top of the stack) to yystate.  |
`--------------------------------------------------------------------*/
yysetstate:
  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
  YY_IGNORE_USELESS_CAST_BEGIN
  *yyssp = YY_CAST (yy_state_t, yystate);
  YY_IGNORE_USELESS_CAST_END
  YY_STACK_PRINT (yyss, yyssp);

  if (yyss + yystacksize - 1 <= yyssp)
#if !defined yyoverflow && !defined YYSTACK_RELOCATE
    YYNOMEM;
#else
    {
      /* Get the current used size of the three stacks, in elements.  */
      YYPTRDIFF_T yysize = yyssp - yyss + 1;

# if defined yyoverflow
      {
        /* Give user a chance to reallocate the stack.  Use copies of
           these so that the &'s don't force the real ones into
           memory.  */
        yy_state_t *yyss1 = yyss;
        YYSTYPE *yyvs1 = yyvs;

        /* Each stack pointer address is followed by the size of the
           data in use in that stack, in bytes.  This used to be a
           conditional around just the two extra args, but that might
           be undefined if yyoverflow is a macro.  */
        yyoverflow (YY_("memory exhausted"),
                    &yyss1, yysize * YYSIZEOF (*yyssp),
                    &yyvs1, yysize * YYSIZEOF (*yyvsp),
                    &yystacksize);
        yyss = yyss1;
        yyvs = yyvs1;
      }
# else /* defined YYSTACK_RELOCATE */
      /* Extend the stack our own way.  */
      if (YYMAXDEPTH <= yystacksize)
        YYNOMEM;
      yystacksize *= 2;
      if (YYMAXDEPTH < yystacksize)
        yystacksize = YYMAXDEPTH;

      {
        yy_state_t *yyss1 = yyss;
        union yyalloc *yyptr =
          YY_CAST (union yyalloc *,
                   YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
        if (! yyptr)
          YYNOMEM;
        YYSTACK_RELOCATE (yyss_alloc, yyss);
        YYSTACK_RELOCATE (yyvs_alloc, yyvs);
#  undef YYSTACK_RELOCATE
        if (yyss1 != yyssa)
          YYSTACK_FREE (yyss1);
      }
# endif

      yyssp = yyss + yysize - 1;
      yyvsp = yyvs + yysize - 1;

      YY_IGNORE_USELESS_CAST_BEGIN
      YYDPRINTF ((stderr, "Stack size increased to %ld\n",
                  YY_CAST (long, yystacksize)));
      YY_IGNORE_USELESS_CAST_END

      if (yyss + yystacksize - 1 <= yyssp)
        YYABORT;
    }
#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */


  if (yystate == YYFINAL)
    YYACCEPT;

  goto yybackup;


/*-----------.
| yybackup.  |
`-----------*/
yybackup:
  /* Do appropriate processing given the current state.  Read a
     lookahead token if we need one and don't already have one.  */

  /* First try to decide what to do without reference to lookahead token.  */
  yyn = yypact[yystate];
  if (yypact_value_is_default (yyn))
    goto yydefault;

  /* Not known => get a lookahead token if don't already have one.  */

  /* YYCHAR is either empty, or end-of-input, or a valid lookahead.  */
  if (yychar == YYEMPTY)
    {
      YYDPRINTF ((stderr, "Reading a token\n"));
      yychar = yylex ();
    }

  if (yychar <= YYEOF)
    {
      yychar = YYEOF;
      yytoken = YYSYMBOL_YYEOF;
      YYDPRINTF ((stderr, "Now at end of input.\n"));
    }
  else if (yychar == YYerror)
    {
      /* The scanner already issued an error message, process directly
         to error recovery.  But do not keep the error token as
         lookahead, it is too special and may lead us to an endless
         loop in error recovery. */
      yychar = YYUNDEF;
      yytoken = YYSYMBOL_YYerror;
      goto yyerrlab1;
    }
  else
    {
      yytoken = YYTRANSLATE (yychar);
      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
    }

  /* If the proper action on seeing token YYTOKEN is to reduce or to
     detect an error, take that action.  */
  yyn += yytoken;
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
    goto yydefault;
  yyn = yytable[yyn];
  if (yyn <= 0)
    {
      if (yytable_value_is_error (yyn))
        goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }

  /* Count tokens shifted since error; after three, turn off error
     status.  */
  if (yyerrstatus)
    yyerrstatus--;

  /* Shift the lookahead token.  */
  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
  yystate = yyn;
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  *++yyvsp = yylval;
  YY_IGNORE_MAYBE_UNINITIALIZED_END

  /* Discard the shifted token.  */
  yychar = YYEMPTY;
  goto yynewstate;


/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state.  |
`-----------------------------------------------------------*/
yydefault:
  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;
  goto yyreduce;


/*-----------------------------.
| yyreduce -- do a reduction.  |
`-----------------------------*/
yyreduce:
  /* yyn is the number of a rule to reduce with.  */
  yylen = yyr2[yyn];

  /* If YYLEN is nonzero, implement the default value of the action:
     '$$ = $1'.

     Otherwise, the following line sets YYVAL to garbage.
     This behavior is undocumented and Bison
     users should not rely upon it.  Assigning to YYVAL
     unconditionally makes the parser a bit smaller, and it avoids a
     GCC warning that YYVAL may be used uninitialized.  */
  yyval = yyvsp[1-yylen];


  YY_REDUCE_PRINT (yyn);
  switch (yyn)
    {
  case 2: /* specification: definition_list  */
#line 220 "dds_idl.y"
                               { (yyval.specification) = new SpecificationNode(); (yyval.specification)->set_definitions((yyvsp[0].definition_list)); }
#line 1522 "IDLBison.cpp"
    break;

  case 3: /* definition_list: definition  */
#line 222 "dds_idl.y"
                            { (yyval.definition_list) = new ListNode<DefinitionNode*>(); (yyval.definition_list)->add((yyvsp[0].definition)); }
#line 1528 "IDLBison.cpp"
    break;

  case 4: /* definition_list: definition_list definition  */
#line 223 "dds_idl.y"
                                 { (yyvsp[-1].definition_list)->add((yyvsp[0].definition)); (yyval.definition_list) = (yyvsp[-1].definition_list); }
#line 1534 "IDLBison.cpp"
    break;

  case 5: /* definition: module_dcl T_SEMICOLON  */
#line 225 "dds_idl.y"
                                   { (yyval.definition) = (yyvsp[-1].module_dcl); }
#line 1540 "IDLBison.cpp"
    break;

  case 6: /* definition: const_dcl T_SEMICOLON  */
#line 226 "dds_idl.y"
                            { (yyval.definition) = (yyvsp[-1].const_dcl); }
#line 1546 "IDLBison.cpp"
    break;

  case 7: /* definition: type_dcl T_SEMICOLON  */
#line 227 "dds_idl.y"
                           { (yyval.definition) = (yyvsp[-1].type_dcl); }
#line 1552 "IDLBison.cpp"
    break;

  case 8: /* definition: include_dcl  */
#line 228 "dds_idl.y"
                  { (yyval.definition) = (yyvsp[0].include_dcl); }
#line 1558 "IDLBison.cpp"
    break;

  case 9: /* include_dcl: T_INCLUDE T_FILEPATH  */
#line 230 "dds_idl.y"
                                  { (yyval.include_dcl) = new IncludeDclNode((yyvsp[0].str)); }
#line 1564 "IDLBison.cpp"
    break;

  case 10: /* module_dcl: T_MODULE T_IDENTIFIER T_LBRACE definition_list T_RBRACE  */
#line 232 "dds_idl.y"
                                                                    { (yyval.module_dcl) = new ModuleDclNode((yyvsp[-3].str), (yyvsp[-1].definition_list)); }
#line 1570 "IDLBison.cpp"
    break;

  case 11: /* scoped_name: T_IDENTIFIER  */
#line 234 "dds_idl.y"
                          { (yyval.scoped_name) = new ScopedNameNode((yyvsp[0].str)); }
#line 1576 "IDLBison.cpp"
    break;

  case 12: /* scoped_name: T_SCOPE T_IDENTIFIER  */
#line 235 "dds_idl.y"
                           { (yyval.scoped_name) = new ScopedNameNode((yyvsp[0].str)); }
#line 1582 "IDLBison.cpp"
    break;

  case 13: /* scoped_name: scoped_name T_SCOPE T_IDENTIFIER  */
#line 236 "dds_idl.y"
                                       { (yyvsp[-2].scoped_name)->add((yyvsp[0].str)); (yyval.scoped_name) = (yyvsp[-2].scoped_name); }
#line 1588 "IDLBison.cpp"
    break;

  case 14: /* const_dcl: T_CONST const_type T_IDENTIFIER T_EQUAL const_expr  */
#line 238 "dds_idl.y"
                                                              { (yyval.const_dcl) = new ConstDclNode((yyvsp[-3].const_type), (yyvsp[-2].str), (yyvsp[0].const_expr)); }
#line 1594 "IDLBison.cpp"
    break;

  case 15: /* const_type: integer_type  */
#line 240 "dds_idl.y"
                         { (yyval.const_type) = (yyvsp[0].base_type); }
#line 1600 "IDLBison.cpp"
    break;

  case 16: /* const_type: floating_pt_type  */
#line 241 "dds_idl.y"
                       { (yyval.const_type) = (yyvsp[0].base_type); }
#line 1606 "IDLBison.cpp"
    break;

  case 17: /* const_type: char_type  */
#line 242 "dds_idl.y"
                { (yyval.const_type) = (yyvsp[0].base_type); }
#line 1612 "IDLBison.cpp"
    break;

  case 18: /* const_type: wide_char_type  */
#line 243 "dds_idl.y"
                     { (yyval.const_type) = (yyvsp[0].base_type); }
#line 1618 "IDLBison.cpp"
    break;

  case 19: /* const_type: boolean_type  */
#line 244 "dds_idl.y"
                   { (yyval.const_type) = (yyvsp[0].base_type); }
#line 1624 "IDLBison.cpp"
    break;

  case 20: /* const_type: octet_type  */
#line 245 "dds_idl.y"
                 { (yyval.const_type) = (yyvsp[0].base_type); }
#line 1630 "IDLBison.cpp"
    break;

  case 21: /* const_type: string_type  */
#line 246 "dds_idl.y"
                  { (yyval.const_type) = (yyvsp[0].string_type); }
#line 1636 "IDLBison.cpp"
    break;

  case 22: /* const_type: wide_string_type  */
#line 247 "dds_idl.y"
                       { (yyval.const_type) = (yyvsp[0].wide_string_type); }
#line 1642 "IDLBison.cpp"
    break;

  case 23: /* const_type: scoped_name  */
#line 248 "dds_idl.y"
                  { (yyval.const_type) = (yyvsp[0].scoped_name); }
#line 1648 "IDLBison.cpp"
    break;

  case 24: /* const_expr: or_expr  */
#line 250 "dds_idl.y"
                    { (yyval.const_expr) = (yyvsp[0].or_expr); }
#line 1654 "IDLBison.cpp"
    break;

  case 25: /* or_expr: xor_expr  */
#line 252 "dds_idl.y"
                  { (yyval.or_expr) = new OrExprNode(nullptr, (yyvsp[0].xor_expr)); }
#line 1660 "IDLBison.cpp"
    break;

  case 26: /* or_expr: or_expr T_PIPE xor_expr  */
#line 253 "dds_idl.y"
                              { (yyval.or_expr) = new OrExprNode((yyvsp[-2].or_expr), (yyvsp[0].xor_expr)); }
#line 1666 "IDLBison.cpp"
    break;

  case 27: /* xor_expr: and_expr  */
#line 255 "dds_idl.y"
                   { (yyval.xor_expr) = new XorExprNode(nullptr, (yyvsp[0].and_expr)); }
#line 1672 "IDLBison.cpp"
    break;

  case 28: /* xor_expr: xor_expr T_CARET and_expr  */
#line 256 "dds_idl.y"
                                { (yyval.xor_expr) = new XorExprNode((yyvsp[-2].xor_expr), (yyvsp[0].and_expr)); }
#line 1678 "IDLBison.cpp"
    break;

  case 29: /* and_expr: shift_expr  */
#line 258 "dds_idl.y"
                     { (yyval.and_expr) = new AndExprNode(nullptr, (yyvsp[0].shift_expr)); }
#line 1684 "IDLBison.cpp"
    break;

  case 30: /* and_expr: and_expr T_AMP shift_expr  */
#line 259 "dds_idl.y"
                                { (yyval.and_expr) = new AndExprNode((yyvsp[-2].and_expr), (yyvsp[0].shift_expr)); }
#line 1690 "IDLBison.cpp"
    break;

  case 31: /* shift_expr: add_expr  */
#line 261 "dds_idl.y"
                     { (yyval.shift_expr) = new ShiftExprNode(nullptr, (yyvsp[0].add_expr), ShiftExprNode::ShiftOp::NONE); }
#line 1696 "IDLBison.cpp"
    break;

  case 32: /* shift_expr: shift_expr T_RSHIFT add_expr  */
#line 262 "dds_idl.y"
                                   { (yyval.shift_expr) = new ShiftExprNode((yyvsp[-2].shift_expr), (yyvsp[0].add_expr), ShiftExprNode::ShiftOp::RIGHT); }
#line 1702 "IDLBison.cpp"
    break;

  case 33: /* shift_expr: shift_expr T_LSHIFT add_expr  */
#line 263 "dds_idl.y"
                                   { (yyval.shift_expr) = new ShiftExprNode((yyvsp[-2].shift_expr), (yyvsp[0].add_expr), ShiftExprNode::ShiftOp::LEFT); }
#line 1708 "IDLBison.cpp"
    break;

  case 34: /* add_expr: mult_expr  */
#line 265 "dds_idl.y"
                    { (yyval.add_expr) = new AddExprNode(nullptr, (yyvsp[0].mult_expr), AddExprNode::AddOp::NONE); }
#line 1714 "IDLBison.cpp"
    break;

  case 35: /* add_expr: add_expr T_PLUS mult_expr  */
#line 266 "dds_idl.y"
                                { (yyval.add_expr) = new AddExprNode((yyvsp[-2].add_expr), (yyvsp[0].mult_expr), AddExprNode::AddOp::PLUS); }
#line 1720 "IDLBison.cpp"
    break;

  case 36: /* add_expr: add_expr T_MINUS mult_expr  */
#line 267 "dds_idl.y"
                                 { (yyval.add_expr) = new AddExprNode((yyvsp[-2].add_expr), (yyvsp[0].mult_expr), AddExprNode::AddOp::MINUS); }
#line 1726 "IDLBison.cpp"
    break;

  case 37: /* mult_expr: unary_expr  */
#line 269 "dds_idl.y"
                      { (yyval.mult_expr) = new MultExprNode(nullptr, (yyvsp[0].unary_expr), MultExprNode::MultOp::NONE); }
#line 1732 "IDLBison.cpp"
    break;

  case 38: /* mult_expr: mult_expr T_STAR unary_expr  */
#line 270 "dds_idl.y"
                                  { (yyval.mult_expr) = new MultExprNode((yyvsp[-2].mult_expr), (yyvsp[0].unary_expr), MultExprNode::MultOp::MULT); }
#line 1738 "IDLBison.cpp"
    break;

  case 39: /* mult_expr: mult_expr T_SLASH unary_expr  */
#line 271 "dds_idl.y"
                                   { (yyval.mult_expr) = new MultExprNode((yyvsp[-2].mult_expr), (yyvsp[0].unary_expr), MultExprNode::MultOp::DIV); }
#line 1744 "IDLBison.cpp"
    break;

  case 40: /* mult_expr: mult_expr T_PERCENT unary_expr  */
#line 272 "dds_idl.y"
                                     { (yyval.mult_expr) = new MultExprNode((yyvsp[-2].mult_expr), (yyvsp[0].unary_expr), MultExprNode::MultOp::MOD); }
#line 1750 "IDLBison.cpp"
    break;

  case 41: /* unary_expr: T_MINUS primary_expr  */
#line 274 "dds_idl.y"
                                 { (yyval.unary_expr) = new UnaryExprNode(UnaryExprNode::UnaryOp::MINUS, (yyvsp[0].primary_expr)); }
#line 1756 "IDLBison.cpp"
    break;

  case 42: /* unary_expr: T_PLUS primary_expr  */
#line 275 "dds_idl.y"
                          { (yyval.unary_expr) = new UnaryExprNode(UnaryExprNode::UnaryOp::PLUS, (yyvsp[0].primary_expr)); }
#line 1762 "IDLBison.cpp"
    break;

  case 43: /* unary_expr: T_TILDE primary_expr  */
#line 276 "dds_idl.y"
                           { (yyval.unary_expr) = new UnaryExprNode(UnaryExprNode::UnaryOp::NOT, (yyvsp[0].primary_expr)); }
#line 1768 "IDLBison.cpp"
    break;

  case 44: /* unary_expr: primary_expr  */
#line 277 "dds_idl.y"
                   { (yyval.unary_expr) = new UnaryExprNode(UnaryExprNode::UnaryOp::NONE, (yyvsp[0].primary_expr)); }
#line 1774 "IDLBison.cpp"
    break;

  case 45: /* primary_expr: scoped_name  */
#line 279 "dds_idl.y"
                          { (yyval.primary_expr) = new PrimaryExprNode((yyvsp[0].scoped_name), nullptr, nullptr); }
#line 1780 "IDLBison.cpp"
    break;

  case 46: /* primary_expr: literal  */
#line 280 "dds_idl.y"
              { (yyval.primary_expr) = new PrimaryExprNode(nullptr, (yyvsp[0].literal), nullptr); }
#line 1786 "IDLBison.cpp"
    break;

  case 47: /* primary_expr: T_LPAREN const_expr T_RPAREN  */
#line 281 "dds_idl.y"
                                   { (yyval.primary_expr) = new PrimaryExprNode(nullptr, nullptr, (yyvsp[-1].const_expr)); }
#line 1792 "IDLBison.cpp"
    break;

  case 48: /* literal: T_INTEGER_LITERAL  */
#line 283 "dds_idl.y"
                           { (yyval.literal) = new LiteralNode((yyvsp[0].num)); }
#line 1798 "IDLBison.cpp"
    break;

  case 49: /* literal: T_FLOAT_LITERAL  */
#line 284 "dds_idl.y"
                      { (yyval.literal) = new LiteralNode((yyvsp[0].fnum)); }
#line 1804 "IDLBison.cpp"
    break;

  case 50: /* literal: T_STRING_LITERAL  */
#line 285 "dds_idl.y"
                       { (yyval.literal) = new LiteralNode((yyvsp[0].str)); }
#line 1810 "IDLBison.cpp"
    break;

  case 51: /* literal: T_TRUE  */
#line 286 "dds_idl.y"
             { (yyval.literal) = new LiteralNode(true); }
#line 1816 "IDLBison.cpp"
    break;

  case 52: /* literal: T_FALSE  */
#line 287 "dds_idl.y"
              { (yyval.literal) = new LiteralNode(false); }
#line 1822 "IDLBison.cpp"
    break;

  case 53: /* positive_int_const: const_expr  */
#line 289 "dds_idl.y"
                               { (yyval.int_const) = (yyvsp[0].const_expr); }
#line 1828 "IDLBison.cpp"
    break;

  case 54: /* type_dcl: constr_type_dcl  */
#line 291 "dds_idl.y"
                          { (yyval.type_dcl) = (yyvsp[0].constr_type); }
#line 1834 "IDLBison.cpp"
    break;

  case 55: /* type_dcl: typedef_dcl  */
#line 292 "dds_idl.y"
                  { (yyval.type_dcl) = (yyvsp[0].typedef_dcl); }
#line 1840 "IDLBison.cpp"
    break;

  case 56: /* type_spec: simple_type_spec  */
#line 294 "dds_idl.y"
                            { (yyval.type_spec) = (yyvsp[0].simple_type); }
#line 1846 "IDLBison.cpp"
    break;

  case 57: /* type_spec: template_type_spec  */
#line 295 "dds_idl.y"
                         { (yyval.type_spec) = (yyvsp[0].template_type_spec); }
#line 1852 "IDLBison.cpp"
    break;

  case 58: /* simple_type_spec: base_type_spec  */
#line 297 "dds_idl.y"
                                 { (yyval.simple_type) = (yyvsp[0].base_type); }
#line 1858 "IDLBison.cpp"
    break;

  case 59: /* simple_type_spec: scoped_name  */
#line 298 "dds_idl.y"
                  { (yyval.simple_type) = (yyvsp[0].scoped_name); }
#line 1864 "IDLBison.cpp"
    break;

  case 60: /* base_type_spec: integer_type  */
#line 300 "dds_idl.y"
                             { (yyval.base_type) = (yyvsp[0].base_type); }
#line 1870 "IDLBison.cpp"
    break;

  case 61: /* base_type_spec: floating_pt_type  */
#line 301 "dds_idl.y"
                       { (yyval.base_type) = (yyvsp[0].base_type); }
#line 1876 "IDLBison.cpp"
    break;

  case 62: /* base_type_spec: char_type  */
#line 302 "dds_idl.y"
                { (yyval.base_type) = (yyvsp[0].base_type); }
#line 1882 "IDLBison.cpp"
    break;

  case 63: /* base_type_spec: wide_char_type  */
#line 303 "dds_idl.y"
                     { (yyval.base_type) = (yyvsp[0].base_type); }
#line 1888 "IDLBison.cpp"
    break;

  case 64: /* base_type_spec: boolean_type  */
#line 304 "dds_idl.y"
                   { (yyval.base_type) = (yyvsp[0].base_type); }
#line 1894 "IDLBison.cpp"
    break;

  case 65: /* base_type_spec: octet_type  */
#line 305 "dds_idl.y"
                 { (yyval.base_type) = (yyvsp[0].base_type); }
#line 1900 "IDLBison.cpp"
    break;

  case 66: /* floating_pt_type: T_FLOAT  */
#line 307 "dds_idl.y"
                          { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::FLOAT); }
#line 1906 "IDLBison.cpp"
    break;

  case 67: /* floating_pt_type: T_DOUBLE  */
#line 308 "dds_idl.y"
               { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::DOUBLE); }
#line 1912 "IDLBison.cpp"
    break;

  case 68: /* floating_pt_type: T_LONG T_DOUBLE  */
#line 309 "dds_idl.y"
                      { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::LONG_DOUBLE); }
#line 1918 "IDLBison.cpp"
    break;

  case 69: /* integer_type: signed_int  */
#line 311 "dds_idl.y"
                         { (yyval.base_type) = (yyvsp[0].base_type); }
#line 1924 "IDLBison.cpp"
    break;

  case 70: /* integer_type: unsigned_int  */
#line 312 "dds_idl.y"
                   { (yyval.base_type) = (yyvsp[0].base_type); }
#line 1930 "IDLBison.cpp"
    break;

  case 71: /* signed_int: signed_short_int  */
#line 314 "dds_idl.y"
                             { (yyval.base_type) = (yyvsp[0].base_type); }
#line 1936 "IDLBison.cpp"
    break;

  case 72: /* signed_int: signed_long_int  */
#line 315 "dds_idl.y"
                      { (yyval.base_type) = (yyvsp[0].base_type); }
#line 1942 "IDLBison.cpp"
    break;

  case 73: /* signed_int: signed_longlong_int  */
#line 316 "dds_idl.y"
                          { (yyval.base_type) = (yyvsp[0].base_type); }
#line 1948 "IDLBison.cpp"
    break;

  case 74: /* signed_short_int: T_SHORT  */
#line 318 "dds_idl.y"
                          { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::SHORT); }
#line 1954 "IDLBison.cpp"
    break;

  case 75: /* signed_short_int: T_INT16  */
#line 319 "dds_idl.y"
              { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::SHORT); }
#line 1960 "IDLBison.cpp"
    break;

  case 76: /* signed_long_int: T_LONG  */
#line 321 "dds_idl.y"
                        { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::LONG); }
#line 1966 "IDLBison.cpp"
    break;

  case 77: /* signed_long_int: T_INT32  */
#line 322 "dds_idl.y"
              { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::LONG); }
#line 1972 "IDLBison.cpp"
    break;

  case 78: /* signed_longlong_int: T_LONG T_LONG  */
#line 324 "dds_idl.y"
                                   { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::LONGLONG); }
#line 1978 "IDLBison.cpp"
    break;

  case 79: /* signed_longlong_int: T_INT64  */
#line 325 "dds_idl.y"
              { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::LONGLONG); }
#line 1984 "IDLBison.cpp"
    break;

  case 80: /* unsigned_int: unsigned_short_int  */
#line 327 "dds_idl.y"
                                 { (yyval.base_type) = (yyvsp[0].base_type); }
#line 1990 "IDLBison.cpp"
    break;

  case 81: /* unsigned_int: unsigned_long_int  */
#line 328 "dds_idl.y"
                        { (yyval.base_type) = (yyvsp[0].base_type); }
#line 1996 "IDLBison.cpp"
    break;

  case 82: /* unsigned_int: unsigned_longlong_int  */
#line 329 "dds_idl.y"
                            { (yyval.base_type) = (yyvsp[0].base_type); }
#line 2002 "IDLBison.cpp"
    break;

  case 83: /* unsigned_short_int: T_UNSIGNED T_SHORT  */
#line 331 "dds_idl.y"
                                       { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::USHORT); }
#line 2008 "IDLBison.cpp"
    break;

  case 84: /* unsigned_short_int: T_UINT16  */
#line 332 "dds_idl.y"
               { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::USHORT); }
#line 2014 "IDLBison.cpp"
    break;

  case 85: /* unsigned_long_int: T_UNSIGNED T_LONG  */
#line 334 "dds_idl.y"
                                     { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::ULONG); }
#line 2020 "IDLBison.cpp"
    break;

  case 86: /* unsigned_long_int: T_UINT32  */
#line 335 "dds_idl.y"
               { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::ULONG); }
#line 2026 "IDLBison.cpp"
    break;

  case 87: /* unsigned_longlong_int: T_UNSIGNED T_LONG T_LONG  */
#line 337 "dds_idl.y"
                                                { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::ULONGLONG); }
#line 2032 "IDLBison.cpp"
    break;

  case 88: /* unsigned_longlong_int: T_UINT64  */
#line 338 "dds_idl.y"
               { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::ULONGLONG); }
#line 2038 "IDLBison.cpp"
    break;

  case 89: /* char_type: T_CHAR  */
#line 340 "dds_idl.y"
                  { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::CHAR); }
#line 2044 "IDLBison.cpp"
    break;

  case 90: /* char_type: T_INT8  */
#line 341 "dds_idl.y"
             { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::CHAR); }
#line 2050 "IDLBison.cpp"
    break;

  case 91: /* wide_char_type: T_WCHAR  */
#line 343 "dds_idl.y"
                        { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::WCHAR); }
#line 2056 "IDLBison.cpp"
    break;

  case 92: /* boolean_type: T_BOOLEAN  */
#line 345 "dds_idl.y"
                        { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::BOOLEAN); }
#line 2062 "IDLBison.cpp"
    break;

  case 93: /* octet_type: T_OCTET  */
#line 347 "dds_idl.y"
                    { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::UCHAR); }
#line 2068 "IDLBison.cpp"
    break;

  case 94: /* octet_type: T_UINT8  */
#line 348 "dds_idl.y"
              { (yyval.base_type) = new BaseTypeNode(BaseTypeNode::Type::UCHAR); }
#line 2074 "IDLBison.cpp"
    break;

  case 95: /* template_type_spec: sequence_type  */
#line 350 "dds_idl.y"
                                  { (yyval.template_type_spec) = (yyvsp[0].sequence_type); }
#line 2080 "IDLBison.cpp"
    break;

  case 96: /* template_type_spec: string_type  */
#line 351 "dds_idl.y"
                  { (yyval.template_type_spec) = (yyvsp[0].string_type); }
#line 2086 "IDLBison.cpp"
    break;

  case 97: /* template_type_spec: wide_string_type  */
#line 352 "dds_idl.y"
                       { (yyval.template_type_spec) = (yyvsp[0].wide_string_type); }
#line 2092 "IDLBison.cpp"
    break;

  case 98: /* template_type_spec: fixed_pt_type  */
#line 353 "dds_idl.y"
                    { (yyval.template_type_spec) = (yyvsp[0].fixed_pt_type); }
#line 2098 "IDLBison.cpp"
    break;

  case 99: /* template_type_spec: map_type  */
#line 354 "dds_idl.y"
               { (yyval.template_type_spec) = (yyvsp[0].map_type); }
#line 2104 "IDLBison.cpp"
    break;

  case 100: /* sequence_type: T_SEQUENCE T_LANGLE type_spec T_COMMA positive_int_const T_RANGLE  */
#line 356 "dds_idl.y"
                                                                                 { (yyval.sequence_type) = new SequenceTypeNode((yyvsp[-3].type_spec), (yyvsp[-1].int_const)); }
#line 2110 "IDLBison.cpp"
    break;

  case 101: /* sequence_type: T_SEQUENCE T_LANGLE type_spec T_RANGLE  */
#line 357 "dds_idl.y"
                                             { (yyval.sequence_type) = new SequenceTypeNode((yyvsp[-1].type_spec)); }
#line 2116 "IDLBison.cpp"
    break;

  case 102: /* string_type: T_STRING T_LANGLE positive_int_const T_RANGLE  */
#line 359 "dds_idl.y"
                                                           { (yyval.string_type) = new StringTypeNode((yyvsp[-1].int_const)); }
#line 2122 "IDLBison.cpp"
    break;

  case 103: /* string_type: T_STRING  */
#line 360 "dds_idl.y"
               { (yyval.string_type) = new StringTypeNode(); }
#line 2128 "IDLBison.cpp"
    break;

  case 104: /* wide_string_type: T_WSTRING T_LANGLE positive_int_const T_RANGLE  */
#line 362 "dds_idl.y"
                                                                 { (yyval.wide_string_type) = new WideStringTypeNode((yyvsp[-1].int_const)); }
#line 2134 "IDLBison.cpp"
    break;

  case 105: /* wide_string_type: T_WSTRING  */
#line 363 "dds_idl.y"
                { (yyval.wide_string_type) = new WideStringTypeNode(); }
#line 2140 "IDLBison.cpp"
    break;

  case 106: /* fixed_pt_type: T_FIXED T_LANGLE positive_int_const T_COMMA positive_int_const T_RANGLE  */
#line 365 "dds_idl.y"
                                                                                       { (yyval.fixed_pt_type) = new FixedPtTypeNode((yyvsp[-3].int_const), (yyvsp[-1].int_const)); }
#line 2146 "IDLBison.cpp"
    break;

  case 107: /* map_type: T_MAP T_LANGLE type_spec T_COMMA type_spec T_COMMA positive_int_const T_RANGLE  */
#line 367 "dds_idl.y"
                                                                                         { (yyval.map_type) = new MapTypeNode((yyvsp[-5].type_spec), (yyvsp[-3].type_spec), (yyvsp[-1].int_const)); }
#line 2152 "IDLBison.cpp"
    break;

  case 108: /* map_type: T_MAP T_LANGLE type_spec T_COMMA type_spec T_RANGLE  */
#line 368 "dds_idl.y"
                                                          { (yyval.map_type) = new MapTypeNode((yyvsp[-3].type_spec), (yyvsp[-1].type_spec), nullptr); }
#line 2158 "IDLBison.cpp"
    break;

  case 109: /* constr_type_dcl: struct_dcl  */
#line 370 "dds_idl.y"
                            { (yyval.constr_type) = (yyvsp[0].struct_dcl); }
#line 2164 "IDLBison.cpp"
    break;

  case 110: /* constr_type_dcl: union_dcl  */
#line 371 "dds_idl.y"
                { (yyval.constr_type) = (yyvsp[0].union_dcl); }
#line 2170 "IDLBison.cpp"
    break;

  case 111: /* constr_type_dcl: enum_dcl  */
#line 372 "dds_idl.y"
               { (yyval.constr_type) = (yyvsp[0].enum_dcl); }
#line 2176 "IDLBison.cpp"
    break;

  case 112: /* struct_dcl: struct_def  */
#line 374 "dds_idl.y"
                       { (yyval.struct_dcl) = (yyvsp[0].struct_def); }
#line 2182 "IDLBison.cpp"
    break;

  case 113: /* struct_dcl: struct_forward_dcl  */
#line 375 "dds_idl.y"
                         { (yyval.struct_dcl) = (yyvsp[0].struct_forward_dcl); }
#line 2188 "IDLBison.cpp"
    break;

  case 114: /* struct_def: type_annotation_list T_STRUCT T_IDENTIFIER T_LBRACE member_list T_RBRACE  */
#line 377 "dds_idl.y"
                                                                                     { (yyval.struct_def) = new StructDefNode((yyvsp[-3].str), (yyvsp[-1].member_list), (yyvsp[-5].type_annotation_list), nullptr); }
#line 2194 "IDLBison.cpp"
    break;

  case 115: /* struct_def: T_STRUCT T_IDENTIFIER T_LBRACE member_list T_RBRACE  */
#line 378 "dds_idl.y"
                                                          { (yyval.struct_def) = new StructDefNode((yyvsp[-3].str), (yyvsp[-1].member_list), nullptr, nullptr); }
#line 2200 "IDLBison.cpp"
    break;

  case 116: /* struct_def: type_annotation_list T_STRUCT T_IDENTIFIER T_COLON scoped_name T_LBRACE member_list T_RBRACE  */
#line 379 "dds_idl.y"
                                                                                                   { (yyval.struct_def) = new StructDefNode((yyvsp[-5].str), (yyvsp[-1].member_list), (yyvsp[-7].type_annotation_list), (yyvsp[-3].scoped_name)); }
#line 2206 "IDLBison.cpp"
    break;

  case 117: /* struct_def: T_STRUCT T_IDENTIFIER T_COLON scoped_name T_LBRACE member_list T_RBRACE  */
#line 380 "dds_idl.y"
                                                                              { (yyval.struct_def) = new StructDefNode((yyvsp[-5].str), (yyvsp[-1].member_list), nullptr, (yyvsp[-3].scoped_name)); }
#line 2212 "IDLBison.cpp"
    break;

  case 118: /* type_annotation_list: type_annotation  */
#line 382 "dds_idl.y"
                                      { (yyval.type_annotation_list) = new ListNode<TypeAnnotationNode*>(); (yyval.type_annotation_list)->add((yyvsp[0].type_annotation)); }
#line 2218 "IDLBison.cpp"
    break;

  case 119: /* type_annotation_list: type_annotation_list type_annotation  */
#line 383 "dds_idl.y"
                                           { (yyvsp[-1].type_annotation_list)->add((yyvsp[0].type_annotation)); (yyval.type_annotation_list) = (yyvsp[-1].type_annotation_list); }
#line 2224 "IDLBison.cpp"
    break;

  case 120: /* type_annotation: T_FINAL_ANNOTATION  */
#line 385 "dds_idl.y"
                                    { (yyval.type_annotation) = new TypeAnnotationNode(TypeAnnotationNode::AnnotationType::FINAL); }
#line 2230 "IDLBison.cpp"
    break;

  case 121: /* type_annotation: T_APPENDABLE_ANNOTATION  */
#line 386 "dds_idl.y"
                              { (yyval.type_annotation) = new TypeAnnotationNode(TypeAnnotationNode::AnnotationType::APPENDABLE); }
#line 2236 "IDLBison.cpp"
    break;

  case 122: /* type_annotation: T_MUTABLE_ANNOTATION  */
#line 387 "dds_idl.y"
                           { (yyval.type_annotation) = new TypeAnnotationNode(TypeAnnotationNode::AnnotationType::MUTABLE); }
#line 2242 "IDLBison.cpp"
    break;

  case 123: /* type_annotation: T_NESTED_ANNOTATION  */
#line 388 "dds_idl.y"
                          { (yyval.type_annotation) = new TypeAnnotationNode(TypeAnnotationNode::AnnotationType::NESTED); }
#line 2248 "IDLBison.cpp"
    break;

  case 124: /* type_annotation: T_BIT_BOUND_ANNOTATION T_LPAREN positive_int_const T_RPAREN  */
#line 389 "dds_idl.y"
                                                                  { (yyval.type_annotation) = new TypeAnnotationNode(TypeAnnotationNode::AnnotationType::BIT_BOUND); (yyval.type_annotation)->setValue((yyvsp[-1].int_const)); }
#line 2254 "IDLBison.cpp"
    break;

  case 125: /* member_list: member  */
#line 391 "dds_idl.y"
                    { (yyval.member_list) = new ListNode<MemberNode*>(); (yyval.member_list)->add((yyvsp[0].member)); }
#line 2260 "IDLBison.cpp"
    break;

  case 126: /* member_list: member_list member  */
#line 392 "dds_idl.y"
                         { (yyvsp[-1].member_list)->add((yyvsp[0].member)); (yyval.member_list) = (yyvsp[-1].member_list); }
#line 2266 "IDLBison.cpp"
    break;

  case 127: /* member: member_annotation_list type_spec T_IDENTIFIER array_dims T_SEMICOLON  */
#line 394 "dds_idl.y"
                                                                             { (yyval.member) = new MemberNode((yyvsp[-3].type_spec), (yyvsp[-2].str), (yyvsp[-1].array_dims), (yyvsp[-4].member_annotation_list)); }
#line 2272 "IDLBison.cpp"
    break;

  case 128: /* member: member_annotation_list type_spec T_IDENTIFIER T_SEMICOLON  */
#line 395 "dds_idl.y"
                                                                { (yyval.member) = new MemberNode((yyvsp[-2].type_spec), (yyvsp[-1].str), nullptr, (yyvsp[-3].member_annotation_list)); }
#line 2278 "IDLBison.cpp"
    break;

  case 129: /* member: type_spec T_IDENTIFIER array_dims T_SEMICOLON  */
#line 396 "dds_idl.y"
                                                    { (yyval.member) = new MemberNode((yyvsp[-3].type_spec), (yyvsp[-2].str), (yyvsp[-1].array_dims), nullptr); }
#line 2284 "IDLBison.cpp"
    break;

  case 130: /* member: type_spec T_IDENTIFIER T_SEMICOLON  */
#line 397 "dds_idl.y"
                                         { (yyval.member) = new MemberNode((yyvsp[-2].type_spec), (yyvsp[-1].str), nullptr, nullptr); }
#line 2290 "IDLBison.cpp"
    break;

  case 131: /* member: type_spec T_SEQUENCE T_SEMICOLON  */
#line 398 "dds_idl.y"
                                       { std::string* memberName = new std::string("sequence"); (yyval.member) = new MemberNode((yyvsp[-2].type_spec), memberName, nullptr, nullptr); }
#line 2296 "IDLBison.cpp"
    break;

  case 132: /* array_dims: fixed_array_size  */
#line 400 "dds_idl.y"
                             { (yyval.array_dims) = new ListNode<FixedArraySizeNode*>(); (yyval.array_dims)->add((yyvsp[0].fixed_array_size)); }
#line 2302 "IDLBison.cpp"
    break;

  case 133: /* array_dims: array_dims fixed_array_size  */
#line 401 "dds_idl.y"
                                  { (yyvsp[-1].array_dims)->add((yyvsp[0].fixed_array_size)); (yyval.array_dims) = (yyvsp[-1].array_dims); }
#line 2308 "IDLBison.cpp"
    break;

  case 134: /* fixed_array_size: T_LBRACKET positive_int_const T_RBRACKET  */
#line 403 "dds_idl.y"
                                                           { (yyval.fixed_array_size) = new FixedArraySizeNode((yyvsp[-1].int_const)); }
#line 2314 "IDLBison.cpp"
    break;

  case 135: /* member_annotation_list: member_annotation  */
#line 405 "dds_idl.y"
                                          { (yyval.member_annotation_list) = new ListNode<MemberAnnotationNode*>(); (yyval.member_annotation_list)->add((yyvsp[0].member_annotation)); }
#line 2320 "IDLBison.cpp"
    break;

  case 136: /* member_annotation_list: member_annotation_list member_annotation  */
#line 406 "dds_idl.y"
                                               { (yyvsp[-1].member_annotation_list)->add((yyvsp[0].member_annotation)); (yyval.member_annotation_list) = (yyvsp[-1].member_annotation_list); }
#line 2326 "IDLBison.cpp"
    break;

  case 137: /* member_annotation: T_ID_ANNOTATION T_LPAREN positive_int_const T_RPAREN  */
#line 408 "dds_idl.y"
                                                                        { (yyval.member_annotation) = new MemberAnnotationNode(MemberAnnotationNode::AnnotationType::ID_ANNOTATION); (yyval.member_annotation)->setValue((yyvsp[-1].int_const)); }
#line 2332 "IDLBison.cpp"
    break;

  case 138: /* member_annotation: T_VALUE_ANNOTATION T_LPAREN positive_int_const T_RPAREN  */
#line 409 "dds_idl.y"
                                                              { (yyval.member_annotation) = new MemberAnnotationNode(MemberAnnotationNode::AnnotationType::VALUE_ANNOTATION); (yyval.member_annotation)->setValue((yyvsp[-1].int_const)); }
#line 2338 "IDLBison.cpp"
    break;

  case 139: /* member_annotation: T_KEY_ANNOTATION  */
#line 410 "dds_idl.y"
                       { (yyval.member_annotation) = new MemberAnnotationNode(MemberAnnotationNode::AnnotationType::KEY_ANNOTATION); }
#line 2344 "IDLBison.cpp"
    break;

  case 140: /* member_annotation: T_SHARED_ANNOTATION  */
#line 411 "dds_idl.y"
                          { (yyval.member_annotation) = new MemberAnnotationNode(MemberAnnotationNode::AnnotationType::SHARED_ANNOTATION); }
#line 2350 "IDLBison.cpp"
    break;

  case 141: /* member_annotation: T_MUST_UNDERSTAND_ANNOTATION  */
#line 412 "dds_idl.y"
                                   { (yyval.member_annotation) = new MemberAnnotationNode(MemberAnnotationNode::AnnotationType::MUST_UNDERSTAND_ANNOTATION); }
#line 2356 "IDLBison.cpp"
    break;

  case 142: /* member_annotation: T_OPTION_ANNOTATION  */
#line 413 "dds_idl.y"
                          { (yyval.member_annotation) = new MemberAnnotationNode(MemberAnnotationNode::AnnotationType::OPTION_ANNOTATION); }
#line 2362 "IDLBison.cpp"
    break;

  case 143: /* struct_forward_dcl: T_STRUCT T_IDENTIFIER  */
#line 415 "dds_idl.y"
                                          { (yyval.struct_forward_dcl) = new StructForwardDclNode((yyvsp[0].str)); }
#line 2368 "IDLBison.cpp"
    break;

  case 144: /* union_dcl: union_def  */
#line 417 "dds_idl.y"
                     { (yyval.union_dcl) = (yyvsp[0].union_def); }
#line 2374 "IDLBison.cpp"
    break;

  case 145: /* union_dcl: union_forward_dcl  */
#line 418 "dds_idl.y"
                        { (yyval.union_dcl) = (yyvsp[0].union_forward_dcl); }
#line 2380 "IDLBison.cpp"
    break;

  case 146: /* union_def: type_annotation_list T_UNION T_IDENTIFIER T_SWITCH T_LPAREN switch_type_spec T_RPAREN T_LBRACE case_list T_RBRACE  */
#line 420 "dds_idl.y"
                                                                                                                             { (yyval.union_def) = new UnionDefNode((yyvsp[-7].str), (yyvsp[-4].switch_type_spec), (yyvsp[-1].case_list), (yyvsp[-9].type_annotation_list)); }
#line 2386 "IDLBison.cpp"
    break;

  case 147: /* union_def: T_UNION T_IDENTIFIER T_SWITCH T_LPAREN switch_type_spec T_RPAREN T_LBRACE case_list T_RBRACE  */
#line 421 "dds_idl.y"
                                                                                                   { (yyval.union_def) = new UnionDefNode((yyvsp[-7].str), (yyvsp[-4].switch_type_spec), (yyvsp[-1].case_list), nullptr); }
#line 2392 "IDLBison.cpp"
    break;

  case 148: /* switch_type_spec: integer_type  */
#line 423 "dds_idl.y"
                               { (yyval.switch_type_spec) = new SwitchTypeSpecNode((yyvsp[0].base_type)); }
#line 2398 "IDLBison.cpp"
    break;

  case 149: /* switch_type_spec: char_type  */
#line 424 "dds_idl.y"
                { (yyval.switch_type_spec) = new SwitchTypeSpecNode((yyvsp[0].base_type)); }
#line 2404 "IDLBison.cpp"
    break;

  case 150: /* switch_type_spec: boolean_type  */
#line 425 "dds_idl.y"
                   { (yyval.switch_type_spec) = new SwitchTypeSpecNode((yyvsp[0].base_type)); }
#line 2410 "IDLBison.cpp"
    break;

  case 151: /* switch_type_spec: scoped_name  */
#line 426 "dds_idl.y"
                  { (yyval.switch_type_spec) = new SwitchTypeSpecNode((yyvsp[0].scoped_name)); }
#line 2416 "IDLBison.cpp"
    break;

  case 152: /* switch_type_spec: T_KEY_ANNOTATION integer_type  */
#line 427 "dds_idl.y"
                                    { (yyval.switch_type_spec) = new SwitchTypeSpecNode((yyvsp[0].base_type), true); }
#line 2422 "IDLBison.cpp"
    break;

  case 153: /* switch_type_spec: T_KEY_ANNOTATION char_type  */
#line 428 "dds_idl.y"
                                 { (yyval.switch_type_spec) = new SwitchTypeSpecNode((yyvsp[0].base_type), true); }
#line 2428 "IDLBison.cpp"
    break;

  case 154: /* switch_type_spec: T_KEY_ANNOTATION boolean_type  */
#line 429 "dds_idl.y"
                                    { (yyval.switch_type_spec) = new SwitchTypeSpecNode((yyvsp[0].base_type), true); }
#line 2434 "IDLBison.cpp"
    break;

  case 155: /* switch_type_spec: T_KEY_ANNOTATION scoped_name  */
#line 430 "dds_idl.y"
                                   { (yyval.switch_type_spec) = new SwitchTypeSpecNode((yyvsp[0].scoped_name), true); }
#line 2440 "IDLBison.cpp"
    break;

  case 156: /* case_list: case  */
#line 432 "dds_idl.y"
                { (yyval.case_list) = new ListNode<CaseNode*>(); (yyval.case_list)->add((yyvsp[0].case_node)); }
#line 2446 "IDLBison.cpp"
    break;

  case 157: /* case_list: case_list case  */
#line 433 "dds_idl.y"
                     { (yyvsp[-1].case_list)->add((yyvsp[0].case_node)); (yyval.case_list) = (yyvsp[-1].case_list); }
#line 2452 "IDLBison.cpp"
    break;

  case 158: /* case: case_label_list member_list  */
#line 435 "dds_idl.y"
                                  { (yyval.case_node) = new CaseNode((yyvsp[-1].case_label_list), (yyvsp[0].member_list)); }
#line 2458 "IDLBison.cpp"
    break;

  case 159: /* case_label_list: case_label  */
#line 437 "dds_idl.y"
                            { (yyval.case_label_list) = new ListNode<CaseLabelNode*>(); (yyval.case_label_list)->add((yyvsp[0].case_label)); }
#line 2464 "IDLBison.cpp"
    break;

  case 160: /* case_label_list: case_label_list case_label  */
#line 438 "dds_idl.y"
                                 { (yyvsp[-1].case_label_list)->add((yyvsp[0].case_label)); (yyval.case_label_list) = (yyvsp[-1].case_label_list); }
#line 2470 "IDLBison.cpp"
    break;

  case 161: /* case_label: T_CASE const_expr T_COLON  */
#line 440 "dds_idl.y"
                                      { (yyval.case_label) = new CaseLabelNode((yyvsp[-1].const_expr)); }
#line 2476 "IDLBison.cpp"
    break;

  case 162: /* case_label: T_DEFAULT T_COLON  */
#line 441 "dds_idl.y"
                        { (yyval.case_label) = new CaseLabelNode(nullptr); }
#line 2482 "IDLBison.cpp"
    break;

  case 163: /* union_forward_dcl: T_UNION T_IDENTIFIER  */
#line 443 "dds_idl.y"
                                        { (yyval.union_forward_dcl) = new UnionForwardDclNode((yyvsp[0].str)); }
#line 2488 "IDLBison.cpp"
    break;

  case 164: /* enum_dcl: type_annotation_list T_ENUM T_IDENTIFIER T_LBRACE enumerator_list T_RBRACE  */
#line 445 "dds_idl.y"
                                                                                     { (yyval.enum_dcl) = new EnumDclNode((yyvsp[-3].str), (yyvsp[-1].enumerator_list), (yyvsp[-5].type_annotation_list)); }
#line 2494 "IDLBison.cpp"
    break;

  case 165: /* enum_dcl: T_ENUM T_IDENTIFIER T_LBRACE enumerator_list T_RBRACE  */
#line 446 "dds_idl.y"
                                                            { (yyval.enum_dcl) = new EnumDclNode((yyvsp[-3].str), (yyvsp[-1].enumerator_list), nullptr); }
#line 2500 "IDLBison.cpp"
    break;

  case 166: /* enumerator_list: enumerator  */
#line 448 "dds_idl.y"
                            { (yyval.enumerator_list) = new ListNode<EnumeratorNode*>(); (yyval.enumerator_list)->add((yyvsp[0].enumerator)); }
#line 2506 "IDLBison.cpp"
    break;

  case 167: /* enumerator_list: enumerator_list T_COMMA enumerator  */
#line 449 "dds_idl.y"
                                         { (yyvsp[-2].enumerator_list)->add((yyvsp[0].enumerator)); (yyval.enumerator_list) = (yyvsp[-2].enumerator_list); }
#line 2512 "IDLBison.cpp"
    break;

  case 168: /* enumerator: T_IDENTIFIER  */
#line 451 "dds_idl.y"
                         { (yyval.enumerator) = new EnumeratorNode((yyvsp[0].str), nullptr); }
#line 2518 "IDLBison.cpp"
    break;

  case 169: /* enumerator: T_VALUE_ANNOTATION T_LPAREN positive_int_const T_RPAREN T_IDENTIFIER  */
#line 452 "dds_idl.y"
                                                                           { (yyval.enumerator) = new EnumeratorNode((yyvsp[0].str), (yyvsp[-2].int_const)); }
#line 2524 "IDLBison.cpp"
    break;

  case 170: /* typedef_dcl: T_TYPEDEF type_spec T_IDENTIFIER  */
#line 454 "dds_idl.y"
                                              { (yyval.typedef_dcl) = new TypeDefDclNode((yyvsp[0].str), (yyvsp[-1].type_spec), nullptr); }
#line 2530 "IDLBison.cpp"
    break;

  case 171: /* typedef_dcl: T_TYPEDEF type_spec T_IDENTIFIER array_dims  */
#line 455 "dds_idl.y"
                                                  { (yyval.typedef_dcl) = new TypeDefDclNode((yyvsp[-1].str), (yyvsp[-2].type_spec), (yyvsp[0].array_dims)); }
#line 2536 "IDLBison.cpp"
    break;


#line 2540 "IDLBison.cpp"

      default: break;
    }
  /* User semantic actions sometimes alter yychar, and that requires
     that yytoken be updated with the new translation.  We take the
     approach of translating immediately before every use of yytoken.
     One alternative is translating here after every semantic action,
     but that translation would be missed if the semantic action invokes
     YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
     if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
     incorrect destructor might then be invoked immediately.  In the
     case of YYERROR or YYBACKUP, subsequent parser actions might lead
     to an incorrect destructor call or verbose syntax error message
     before the lookahead is translated.  */
  YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);

  YYPOPSTACK (yylen);
  yylen = 0;

  *++yyvsp = yyval;

  /* Now 'shift' the result of the reduction.  Determine what state
     that goes to, based on the state we popped back to and the rule
     number reduced by.  */
  {
    const int yylhs = yyr1[yyn] - YYNTOKENS;
    const int yyi = yypgoto[yylhs] + *yyssp;
    yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
               ? yytable[yyi]
               : yydefgoto[yylhs]);
  }

  goto yynewstate;


/*--------------------------------------.
| yyerrlab -- here on detecting error.  |
`--------------------------------------*/
yyerrlab:
  /* Make sure we have latest lookahead translation.  See comments at
     user semantic actions for why this is necessary.  */
  yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;
      yyerror (YY_("syntax error"));
    }

  if (yyerrstatus == 3)
    {
      /* If just tried and failed to reuse lookahead token after an
         error, discard it.  */

      if (yychar <= YYEOF)
        {
          /* Return failure if at end of input.  */
          if (yychar == YYEOF)
            YYABORT;
        }
      else
        {
          yydestruct ("Error: discarding",
                      yytoken, &yylval);
          yychar = YYEMPTY;
        }
    }

  /* Else will try to reuse lookahead token after shifting the error
     token.  */
  goto yyerrlab1;


/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR.  |
`---------------------------------------------------*/
yyerrorlab:
  /* Pacify compilers when the user code never invokes YYERROR and the
     label yyerrorlab therefore never appears in user code.  */
  if (0)
    YYERROR;
  ++yynerrs;

  /* Do not reclaim the symbols of the rule whose action triggered
     this YYERROR.  */
  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);
  yystate = *yyssp;
  goto yyerrlab1;


/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
`-------------------------------------------------------------*/
yyerrlab1:
  yyerrstatus = 3;      /* Each real token shifted decrements this.  */

  /* Pop stack until we find a state that shifts the error token.  */
  for (;;)
    {
      yyn = yypact[yystate];
      if (!yypact_value_is_default (yyn))
        {
          yyn += YYSYMBOL_YYerror;
          if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
            {
              yyn = yytable[yyn];
              if (0 < yyn)
                break;
            }
        }

      /* Pop the current state because it cannot handle the error token.  */
      if (yyssp == yyss)
        YYABORT;


      yydestruct ("Error: popping",
                  YY_ACCESSING_SYMBOL (yystate), yyvsp);
      YYPOPSTACK (1);
      yystate = *yyssp;
      YY_STACK_PRINT (yyss, yyssp);
    }

  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  *++yyvsp = yylval;
  YY_IGNORE_MAYBE_UNINITIALIZED_END


  /* Shift the error token.  */
  YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);

  yystate = yyn;
  goto yynewstate;


/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here.  |
`-------------------------------------*/
yyacceptlab:
  yyresult = 0;
  goto yyreturnlab;


/*-----------------------------------.
| yyabortlab -- YYABORT comes here.  |
`-----------------------------------*/
yyabortlab:
  yyresult = 1;
  goto yyreturnlab;


/*-----------------------------------------------------------.
| yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here.  |
`-----------------------------------------------------------*/
yyexhaustedlab:
  yyerror (YY_("memory exhausted"));
  yyresult = 2;
  goto yyreturnlab;


/*----------------------------------------------------------.
| yyreturnlab -- parsing is finished, clean up and return.  |
`----------------------------------------------------------*/
yyreturnlab:
  if (yychar != YYEMPTY)
    {
      /* Make sure we have latest lookahead translation.  See comments at
         user semantic actions for why this is necessary.  */
      yytoken = YYTRANSLATE (yychar);
      yydestruct ("Cleanup: discarding lookahead",
                  yytoken, &yylval);
    }
  /* Do not reclaim the symbols of the rule whose action triggered
     this YYABORT or YYACCEPT.  */
  YYPOPSTACK (yylen);
  YY_STACK_PRINT (yyss, yyssp);
  while (yyssp != yyss)
    {
      yydestruct ("Cleanup: popping",
                  YY_ACCESSING_SYMBOL (+*yyssp), yyvsp);
      YYPOPSTACK (1);
    }
#ifndef yyoverflow
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
#endif

  return yyresult;
}

#line 457 "dds_idl.y"


void yyerror(const char *s) {
    std::cerr << "Line: " << yyget_lineno() << " Error: " << s << std::endl;
}
